explain the concept of inheritance with an example?
Answer Posted / ackrao
Deriving the properties of one class in to another class is called as inheritance.
Existing class is base class and new class is derived class.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Which access specifier can be used with class ?
What is meant by JVM? Is JVM platform independent or not?
Where pragma is used?
what is recursion in java
What is the replace tool?
If system.exit (0); is written at the end of the try block, will the finally block still execute?
When is the arraystoreexception thrown?
What classes of exceptions may be thrown by a throw statement?
Why do we need data serialization?
How do you create a method in java?
What is the method to declare member of a class static?
What is the gregoriancalendar class in java programming?
Can we override the overloaded method?
What is a treeset class?
Which is the best approach for creating thread ?