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
Outline the major features of java.
How does arraylist work in java?
What an i/o filter?
What are user defined exceptions?
What is update method called?
What is the purpose of garbage collection in java, and when is it used?
Can we have a try block without catch block?
Can we change the scope of the overridden method in the subclass?
What is the difference between multiple processes and multiple threads?
What are nested classes in java?
What is udp in java?
How do you implement polymorphism in our day to day life?
What is the purpose of object oriented programming?
What is the difference between an if statement and a switch statement?
How will you call an Applet using Java Script Function?