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
Why chararray() is preferred over string to store the password?
Can we split string with in java?
How many types of memory areas are allocated by JVM in java?
Which number is denoted by leading zero in java?
Which programming language is best in future?
What is the latest java version?
What is a singleton factory?
How many boolean functions are there?
How do you format in java?
What is difference between next () and nextline () in java?
What is instanceof keyword?
What are the three parts of a lambda expression? What is the type of lambda expression?
Can we convert stringbuffer to string?
Why can't we override private static methods?
What are the advantages of packages in java?