explain the concept of inheritance with an example?

Answer Posted / dsr

The base class properties into derived class. This is nown
as inheritance.

example: father and child relation. father properties power
get the child.

Is This Answer Correct ?    18 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are JVM.JRE, J2EE, JNI?

696


Is zero a natural number?

571


Can we serialize static variables in java?

656


Can you declare a private method as static?

700


How many types of flags are there?

525






Can there be an abstract method without an abstract class?

541


What does exp mean in math?

535


Is int a class in java?

531


What is comparator in java?

559


What is the difference between hashset and treeset in java?

543


What is object data type?

569


What is meant by polymorphism?

541


Difference between a process and a program?

619


What the difference is between execute, execute Query, execute Update?

378


What is the purpose of interface?

586