Answer Posted / mohit karasanbhai kanani
hierarchical inheritance
Dedination:
One comman class have a two derived class.
Syntax:
class (classname)k /* base class */
{
/*defination of class k*/
};
class (classname)m:public class k /* derive class (here
derive class of class k)*/
{
/*defination of class m*/
};
class (classname)p:public class k /* derive class (here
derive class of class k)*/
{
/*defination of class p*/
};
void main
{
}
note: here class name k,p,m are only for example
| Is This Answer Correct ? | 23 Yes | 5 No |
Post New Answer View All Answers
What is static in oop?
What is the problem with multiple inheritance?
Is this job good for future? can do this job post grduate student?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
How to call a non virtual function in the derived class by using base class pointer
What is overloading in oops?
Get me a number puzzle game-program
program for insertion ,deletion,sorting in double link list
What is multilevel inheritance?
Is react oop?
c++ program to swap the objects of two different classes
what is difference between class template and template class?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< Will I be able to get a picture in D drive to the c++
program? If so, help me out? What do you mean by Encapsulation?