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
What is protected in oop?
What are constructors in oop?
How to call a non virtual function in the derived class by using base class pointer
Get me an image implementation program.
when to use 'mutable' keyword and when to use 'const cast' in c++
Please send ford technologies placement paper 2 my mail id
Why is destructor used?
What is overriding vs overloading?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
What is encapsulation in ict?
Why do we need polymorphism in c#?
What is static modifier?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
Which type does string inherit from?
Get me a number puzzle game-program