Solved

Consider the Following Code Snippet

Question 70

Multiple Choice

Consider the following code snippet. Consider the following code snippet.   Which of the following statements is correct? A) Coin dime  = new Coin(0.1,  dime ) ; BankAccount b=  (Measureable) dime; B) Measureable m=  new BankAccount  (1000) ; BankAccount  b=m ;  C) Coin dime  = new Coin(0.1 ,  dime ) ; Measurable m=  dime; D) Measurable m=  new Coin(0.1 ,  dime ) ; Coin dime  =m ;
Which of the following statements is correct?


A) Coin dime = new Coin(0.1, "dime") ;
BankAccount b= (Measureable) dime;
B) Measureable m= new BankAccount (1000) ;
BankAccount b=m ;
C) Coin dime = new Coin(0.1 , "dime") ;
Measurable m= dime;
D) Measurable m= new Coin(0.1 , "dime") ;
Coin dime =m ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions