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 language is java written?
Why deletion in linkedlist is fast than arraylist?
Is 0 an irrational number?
What is static import in java?
How to run a JAR file through command prompt?
what is a green thread? : Java thread
Can we call a non-static method from inside a static method?
Explain the use of shift operator in java. Can you give some examples?
What do you mean by append?
I don’t want my class to be inherited by any other class. What should I do?
What is Applet Stub Interface ?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
What is the destroy method?
What is a instance variable?
What are the various access specifiers in java?