What are the advantages of inheritance?
Answer Posted / shiavni
inheritance is a process by which object of one class
acquire the properties from the object of another class.
the major advantage of inheritance is reusability which
means that we can add additional feauters into an existing
class without modifying it. this is possible by deriving a
new class from an existing one. i.e. creating new class
called derived class from an existing or created earlier
class called base class. the derived class will have the
combined features of both the classes.
| Is This Answer Correct ? | 56 Yes | 17 No |
Post New Answer View All Answers
can inline function declare in private part of class?
What is the difference between inheritance and polymorphism?
What is the real time example of inheritance?
What does and I oop and sksksk mean?
What is the point of oop?
What type of loop is a for loop?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What is inheritance in simple words?
What is for loop and its syntax?
Where You Can Use Interface in your Project
What are the important components of cohesion?
What is multilevel inheritance in oop?
What is abstract class in oop?
What is a superclass in oop?
What are the benefits of polymorphism?