What will make this code compile and run?

Given the following code: What will make this code compile and run?

Given the following code: What will make this code compile and run?

A.
Change line 5 to the following: Price = (float) 4:

B.
Change line 5 to the following: Price = (Simple) 4;

C.
Change line 5 to the following: price.price = 4;

D.
Change line 4 to the following: Float price = new simple ();

E.
Change line 4 to the following: int price = new simple ();

F.
Change line 2 to the following: Public int price

G.
Change line 5 to the following: Price = 4f;



Leave a Reply 0

Your email address will not be published. Required fields are marked *