Which of the following is an example of multiple inheritance?
A) a computer can be a mainframe or a PC
B) a PC can be a desktop or a laptop
C) a laptop is both a PC and a portable device
D) a portable device is a lightweight device
E) Macintosh and IBM PC are both types of PCs
Correct Answer:
Verified
Q21: Abstract methods are used when defining
A) interface
Q22: Aside from permitting inheritance, the visibility modifier
Q23: Using the reserved word super, one can
A)
Q24: Java does not support multiple inheritance but
Q25: Inheritance through an extended (derived) class supports
Q27: Example Code Ch 09-5
Consider the following class
Q28: Which of the following is correct?
A) a
Q29: If a programmer writes a class that
Q30: Example Code Ch 09-5
Consider the following class
Q31: All classes in Java are directly or
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