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
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
Can keyword be used as identifier?
What is the ==?
What is ‘is-a ‘ relationship in java?
What is abstract class constructor called?
What is the function of java?
What is the use of optional ?
What is the use of list in java?
What is java object name?
How many techniques can be employed to create a string object?
What is difference between static and final?
If a class is declared without any access modifiers, where may the class be accessed in java programming?
What does %4d mean in java?
What’s a deadlock?
What are the basic control structures?