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
Can enum be null?
Why is polymorphism important in oop?
Why is polymorphism needed?
What is the problem with multiple inheritance?
which feature are not hold visual basic of oop?
What are the advantages of polymorphism?
Can private class be inherited?
What is coupling in oops?
What is stream in oop?
What exactly is polymorphism?
Why do we use encapsulation in oops?
How do you define social class?
What is class and example?
What is polymorphism and its types?
What is abstraction in oops with example?