Which of the following is true about interface types and abstract classes?
A) An interface type cannot be instantiated whereas an abstract class can.
B) An interface type cannot have instance variables whereas an abstract class can.
C) An abstract class can provide method implementation whereas an interface type cannot.
D) An interface type cannot have constants whereas an abstract class can.
Correct Answer:
Verified
Q21: Assume a class extends another class and
Q22: Using the given definition of the Measurable
Q23: Consider the following class: Q24: Which of the following can potentially be Q25: Assume a class implements two interfaces, both Q27: Assume that the Measurable interface is defined Q28: The method below is designed to return Q29: Using the given definition of the Measurable Q30: Which of the following is true about Q31: Consider the following class:
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