Answer Posted / muniba
hirerical means that is a tree like
for e.g
class A
{
//some data and methods
};
class B:class A
{
//some data and methods
};
class C:class B
{
//some data and methods
};
and hirerical inheritance is that inheritance which is a
tree like
grandfather
^
|
father
^
|
son
;)
| Is This Answer Correct ? | 38 Yes | 83 No |
Post New Answer View All Answers
write a program to find 2^n+1 ?
What is difference between data abstraction and encapsulation?
What is class and object in oops?
What is interface? When and where is it used?
Give an example where we have to specifically use C programming language and C++ programming language cannot be used?
Why is polymorphism used?
What is polymorphism and its types?
Can abstract class have normal methods?
What is polymorphism and why is it important?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
Write a c++ program to display pass and fail for three student using static member function
Why do while loop is used?
What is encapsulation with real life example?
Explain virtual inheritance?
Why multiple inheritance is not allowed?