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 an accessor?
What is the difference between Error, defect,fault, failure and mistake?
What is meant by object?
Write a java program to count the number of words present in a string?
What is method with example?
Explain the difference between abstract class and interface in java?
Is it possible to use string in the switch case?
What is null statement?
How many types of methods are there in java?
What does int [] mean in java?
Does anyone still use java?
What is difference between final and immutable?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
Why lambda expression is used in java?
Is java call by value?