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
Explain the concept of multiple inheritance (virtual inheritance). Write about its advantages and disadvantages?
What is meant by “abstract interface”?
Explain what is polymorphism?
Describe the Diamond problem. Where does this problem occur?
Differentiate between overloading and overriding.
Explain about Overloading vs Overriding ?
What are the properties that are defined in an object model?
Explain about encapsulation?
What is the order of call of constructors in inheritiance?
What is the @functionalinterface annotation?
What is the difference between an abstract class and interface in java?
What are the methods required to create changes in subclasses?
What is data abstraction? what are the three levels of data abstraction with Example?
What do you mean by abstract classes?
What is function override?