Advantages of Inheritance in java.

Answer Posted / sitaram

Inheritance: The base class properties into subclass class
is called inheritance.
Inheritance example:Father and child relation. Father
having 10 lakhs property. That property is always avilable
to child. Father is a parent class. child is a subclass.
Advantage: 1.subclasss take the all properties from parent
class.
2.suppose you can add any property in parent class. That
will be effected to subclasses also.

Is This Answer Correct ?    22 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a static method in java?

540


What Is Query Throttling in java?

564


What is the use of a copy constructor?

573


Why collection is called framework in java?

540


what is interface in java? Explain

535






How do you override a variable in java?

533


What is a “stateless” protocol ?

559


Can we use static class instead of singleton?

582


what is meant by Byte code concept in Java?

600


What is get () in java?

570


What is gui programming?

523


What is meant by structural programming?

555


What is arrays sort in java?

576


How many types of keywords are there?

564


What are bind parameters?

553