Question OOP-INH-0001
EasyWhat is inheritance?
- A.
Hiding data in a class
- B.
Calling a function many times
- C.
Show answer and explanation
Answer: D
A subclass (child) reuses and extends the behaviour of a superclass (parent).
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Inheritance question
What is inheritance?
Hiding data in a class
Calling a function many times
Answer: D
A subclass (child) reuses and extends the behaviour of a superclass (parent).
Creating many objects
A class acquiring the properties and methods of another class