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
What will be the initial value of an object reference which is defined as an instance variable?
What is the method in java?
What is a map? What are the implementations of map?
What is used of static keyword in java?
When can an object reference be cast to an interface reference in java programming?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
Where import statement is used in a java program?
How to perform binary search in java?
Explain about automatic type conversion in java?
Why does it take so much time to access an applet having swing components the first time?
What is the driver class?
What is the difference between Grid and Gridbaglayout?
When do I need to use reflection feature in java?
What do you mean by order of precedence and associativity?
What class of exceptions are generated by the java run-time system?