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
What is a static method in java?
What Is Query Throttling in java?
What is the use of a copy constructor?
Why collection is called framework in java?
what is interface in java? Explain
How do you override a variable in java?
What is a “stateless” protocol ?
Can we use static class instead of singleton?
what is meant by Byte code concept in Java?
What is get () in java?
What is gui programming?
What is meant by structural programming?
What is arrays sort in java?
How many types of keywords are there?
What are bind parameters?