5 Questions
Which of the following is NOT inherited by a child object in object-oriented programming?
Friend functions
What is the purpose of inheritance in object-oriented programming?
To create new classes from existing ones
Which type of inheritance is defined as basing an object or class upon another object or class?
Class-based inheritance
What does inheritance allow programmers to do?
Reuse code and extend existing classes
Which of the following is NOT inherited by a child object in most class-based object-oriented languages like C++?
Constructors
Quiz: Test your knowledge of inheritance in object-oriented programming
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free