Answer Posted / sri
Inheritance is a type of relationship among classes, wherein
one class shares the structure or behaviour defined in one
(single inheritance) or more (multiple inheritance) other
classes. Inheritance defines a "kind of" hierarchy among
classes in which a sub class inherits from one or more
super-classes; a sub-class typically augments or redefines
the existing structure and behaviour of its super-classes.
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is the difference between an error and an exception?
What is a default method? Why do we need default methods in java 8 interfaces?
Can you instantiate an abstract class and what is an inner class?
Can we override a method by using same method name and arguments but different return types?
Can encapsulation be called as a security device?
What is the difference between a virtual method and an abstract method?
A class inherits from 2 interfaces and both the interfaces have the same method name as shown below. How should the class implement the drive method for both car and bus interface?
Is is possible to define our own functional interface?
Can I implement polymorphism using abstract class?
Difference between encapsulation and data hiding ?
What are the limitations of oops?
What interface must an object implement before it can be written to a stream as an object?
Explain about polymorphism?
Can a class in java be inherited from more than one class?
Explain what is polymorphism?