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 Abstract class and Interface?
What is constructor and virtual function? Can we call virtual funciton in a constructor?
What is serialization? How do we implement serialization actually?
Explain what is single and multiple inheritance?
What is the difference abstract class and interface?
Explain serialization and overriding?
What is the difference between a class and a structure?
Explain the concept of multiple inheritance (virtual inheritance). Write about its advantages and disadvantages?
What is data encapsulation and what's its significance?
Why do we use oops concepts? What is its advantage?
How many methods are there in the externalizable interface?
What is the benefit of using inheritance?
Can a class implement two interfaces having default method with same name and signature?
Is it possible to override private virtual methods?
Can we access interface static method using interface references?