Which of the following statements about interfaces is true?
A) You cannot define a variable whose type is an interface.
B) You can define an interface variable that refers to an object of any class in the same package.
C) You can define an interface variable that refers to an object only if the object belongs to a class that implements the interface.
D) You can instantiate an object from an interface class.
Correct Answer:
Verified
Q30: Which of the following is true about
Q31: Consider the following class: Q32: Consider the following code snippet: Q33: Which of the following is true regarding Q34: Using the given definition of the Measurable Q36: Consider the following class: Q37: Which of the following are not allowed Q38: Consider the following code snippet. Q39: If you have multiple classes in your Q40: Consider the following declarations: Unlock this Answer For Free Now! View this answer and more for free by performing one of the following actions Scan the QR code to install the App and get 2 free unlocks Unlock quizzes for free by uploading documents