Beginner
C++
Q29 / 100
What is inheritance in C++?
Correct! Well done.
Incorrect.
The correct answer is B) A mechanism where a derived class acquires members from a base class
B
Correct Answer
A mechanism where a derived class acquires members from a base class
Explanation
class Dog : public Animal means Dog inherits Animal's public and protected members.
Progress
29/100