difine hierarchical inheritance.

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


Please Help Members By Posting Answers For Below Questions

Can enum be null?

583


Why is polymorphism important in oop?

629


Why is polymorphism needed?

591


What is the problem with multiple inheritance?

582


which feature are not hold visual basic of oop?

1721






What are the advantages of polymorphism?

573


Can private class be inherited?

615


What is coupling in oops?

593


What is stream in oop?

837


What exactly is polymorphism?

600


Why do we use encapsulation in oops?

518


How do you define social class?

597


What is class and example?

567


What is polymorphism and its types?

591


What is abstraction in oops with example?

770