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


Please Help Members By Posting Answers For Below Questions

Which access specifier can be used with class ?

746


What is meant by JVM? Is JVM platform independent or not?

857


Where pragma is used?

850


what is recursion in java

841


What is the replace tool?

800


If system.exit (0); is written at the end of the try block, will the finally block still execute?

860


When is the arraystoreexception thrown?

798


What classes of exceptions may be thrown by a throw statement?

763


Why do we need data serialization?

761


How do you create a method in java?

766


What is the method to declare member of a class static?

791


What is the gregoriancalendar class in java programming?

809


Can we override the overloaded method?

826


What is a treeset class?

787


Which is the best approach for creating thread ?

973