Answer Posted / sujatha
hierarchical inheritance:
It is a type of inheritance where one or more derived
classes is derved from common( or one ) base class .
ex:
class A
{
// definition of class A
};
class B : public A //derived from A
{
// definition of class B
};
class C : public A //derived from A
{
// definition of class c
};
| Is This Answer Correct ? | 134 Yes | 22 No |
Post New Answer View All Answers
How do you define social class?
what is the drawback of classical methods in oops?
What is the benefit of oop?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
Whats is abstraction in oops?
Why do we use polymorphism?
Templates mean
Where is pseudocode used?
Why do while loop is used?
What is the example of polymorphism?
What is data binding in oops?
Can a varargs method be overloaded?
How to hide the base class functionality in Inheritance?
Why is encapsulation used?
What is the difference between abstraction and polymorphism?