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
what is the drawback of classical methods in oops?
What is and I oop mean?
What do you mean by abstraction?
What is polymorphism in oop example?
What is pure oop?
Is this job good for future? can do this job post grduate student?
Why is oop better than procedural?
What is use of overloading?
What is class and object with example?
How to hide the base class functionality in Inheritance?
What is the difference between encapsulation and polymorphism?
Whats is abstraction in oops?
What is an example of genetic polymorphism?
What is overriding in oop?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?