explain the concept of inheritance with an example?
Answer Posted / shekar
Inheritence is the process by which one object acquires the
properties of another object. by using the extends keyword.
Adv:
It is easier to reuse code
Is This Answer Correct ? | 40 Yes | 5 No |
Post New Answer View All Answers
What is the difference between the font and fontmetrics classes in java programming?
Will set allow duplicates in java?
What is the final keyword denotes?
Will the jvm load the package twice at runtime?
Why is sizeof not a function?
Can a class extends itself in java?
Does a class inherit the constructors of its superclass in java programming?
What is time complexity algorithm?
Name and explain the types of ways which are used to pass arguments in any function in java.
Is final static java?
Write a program in java to create a doubly linked list containing n nodes.
Is object a data type?
What is object-oriented paradigm?
Give me some null interfaces in java?
What are controls and their different types in awt?