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
Which is better ascii or unicode?
Can a static class implement an interface?
What does java se mean?
Define jre i.e. Java runtime environment?
What is a list in java?
What is the base class in java from which all classes are derived?
Implement a stack with push (), pop() and min() in O(1) time.
Why synchronization is important?
How is it possible in java programming for two string objects with identical values not to be equal under the == operator?
What does it mean that a class or member is final?
What is difference between printf and scanf?
What is qualitative variable?
Is it correct to say that due to garbage collection feature in java, a java program never goes out of memory?
Mention a package that is used for linked list class in java.
Is java se open source?