explain the concept of inheritance with an example?

Answer Posted / kush singh

Inheritance is a process of inheriting members and member functions of a particular class. This means one class can use the data members and functions of another similar class. This reduces efforts as similar data members or functions do not need to be declared again and again.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the append?

734


What is double data type?

757


Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?

873


In the below example, how many string objects are created?

799


How can we use primitive data types as objects?

757


What is stack explain?

705


Explain the difference between jdk, jre, and jvm?

824


How does system arraycopy work in java?

864


How dead lock situation occurs in java and how you can identify it?

764


Have you ever used hashtable and dictionary?

815


What is proper subset?

774


How to reverse a string in java?

800


What are java methods?

823


What are the main uses of the super keyword?

775


Java Compiler is stored in JDK, JRE or JVM?

1264