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
What are the two types of streams offered by java 8?
What restrictions are placed on method overloading in java programming?
What is sorting in java?
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
Is array size fixed in java?
Detail discussions on JVM, memory management and garbage collector.
Where is stringbuffer stored?
Which package is imported by default?
What is meant by null and void?
Explain the selection sort algorithm?
Why volatile is used in java?
What are the differences between this and super keyword?
what is the final keyword denotes in java?
How we can run a jar file through command prompt in java?
What does a method signature consist of?