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


Please Help Members By Posting Answers For Below Questions

what is the drawback of classical methods in oops?

2922


What is and I oop mean?

624


What do you mean by abstraction?

619


What is polymorphism in oop example?

519


What is pure oop?

599






Is this job good for future? can do this job post grduate student?

1694


Why is oop better than procedural?

606


What is use of overloading?

612


What is class and object with example?

590


How to hide the base class functionality in Inheritance?

640


What is the difference between encapsulation and polymorphism?

598


Whats is abstraction in oops?

593


What is an example of genetic polymorphism?

653


What is overriding in oop?

551


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2110