Question OOP-INH-0025
EasyIn C++, what does the word public mean in class Dog : public Animal?
- A.
Dog becomes a public variable
- B.
Dog cannot be inherited further
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Inheritance question
In C++, what does the word public mean in class Dog : public Animal?
Dog becomes a public variable
Dog cannot be inherited further
Sign up free to see the answer and a step-by-step explanation.
Animal can access Dog's private members
Public inheritance: Animal's public members stay public in Dog