Which of the following statements about an interface is true?
A) An interface has both public and private methods.
B) An interface has methods and instance variables.
C) An interface has methods but no instance variables.
D) An interface has neither methods nor instance variables.
Correct Answer:
Verified
Q10: A class that implements an interface must
Q11: Consider the following code snippet:
Q12: To use an interface, a class header
Q13: Consider the definition of the Measurable interface
Q14: In UML, a dotted arrow with a
Q16: Which of the following statements is correct
Q17: Consider the definition of the Measurable interface
Q18: A method that has no implementation is
Q19: Which of the following statements about abstract
Q20: Which of the following statements about a
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