The main objective of inheritance in OOP is: Code Complexity Code Encapsulation Code Abstraction Code Reusability
Added by Michael P.
Close
Step 1
Inheritance is a mechanism where one class acquires the properties and methods of another class. Show more…
Show all steps
Your feedback will help us improve your experience
Paul Gabriel and 94 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Which feature of Object-Oriented Programming deals with code reusability? Select one: a) Encapsulation b) Inheritance c) Polymorphism d) Abstraction
Paul G.
What is the benefit of encapsulation? A. To rename variables B. To reuse code C. To make all members public D. To make all members protected
Sanchit J.
'One of the advantages of using Object Oriented Programming is for code reuse_ which can be achieved by two ways; either inheritance or composition. Select one: True False'
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD