explain the concept of inheritance with an example?
Answer Posted / kk
Inheritance is the process of extending the properties of super class to sub class(methods and variables) if required overriding the properties(methods)
eg...
child having(extended) the Characters(Behavior) of father.
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
Is a char always 1 byte?
Why is serialization required?
What is a values collection view ?
What are the rules for variable declaration?
Does java support function overloading, pointers, structures, unions or linked lists?
Is 64bit faster than 32 bit?
What is the difference between class & object?
Give an example of call be reference significance.
What is a consumer in java?
Can we use string in the switch case?
How do you square a number in java?
What are data types in programming?
What do you mean by aggregation?
Is char a data type in java?
Which variable is the independent variable?