Ask Question

Which of the following is an example of multiple inheritance?

a. Macintosh and IBM PC are both types of PCs

b. a computer can be a mainframe or a PC

c. a PC can be a desktop or a laptop

d. a laptop is both a PC and a portable device

e. a portable device is a lightweight device

+2
Answers (1)
  1. 31 January, 14:27
    0
    D) A laptop is both a PC and a portable device

    Explanation:

    In Object oriented programming multiple inheritance refers to a class or the object of a class inheriting multiple characteristics from more than one parent class. Bringing this idea to the scenario in this question, we see that a laptop shares several common characteristics and features of a PC as well as portable devices so this can be seen as an example of multiple inheritance.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which of the following is an example of multiple inheritance? a. Macintosh and IBM PC are both types of PCs b. a computer can be a ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers