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

What is an interface in java?

781


What is the difference between length and length() method in java?

862


How is tree Mirroring implemented?

822


How will you get the platform dependent values like line separator, path separator, etc., ?

796


Give differences between Quicksort & Mergesort. When should these sorts be used and what is their running time?

786


How can an exception be thrown manually by a programmer?

738


How do you convert boolean to boolean?

793


What is flush () in java?

775


Why pointers are not used in java?

837


What are the topics in core java?

808


Why chararray() is preferred over string to store the password?

768


What's the access scope of protected access specifier?

790


What are the properties of thread?

697


How do you use compareto?

719


What is use of super keyword?

752