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
How many ways can we create singleton class?
What is a dot notation?
I want to re-reach and use an object once it has been garbage collected. How it's possible?
What is bubble sorting in java?
Difference between Linked list and Queue?
What are different data types?
Write a program in java to find the maximum and minimum value node from a circular linked list.
How do I enable java in safari?
What is the difference between superclass and subclass?
What do you mean by pointer value and address?
What are "methods" and "fields"?
Which number is denoted by leading zero in java?
What is replaceall in java?
Write a program to print the pattern given below
How to run a JAR file through command prompt?