Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

difine hierarchical inheritance.

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


Please Help Members By Posting Answers For Below Questions

Can private class be inherited?

1170


Write a c++ program to display pass and fail for three student using static member function

3405


What are main features of oop?

1123


What is oops and why we use oops?

1050


What is the problem with multiple inheritance?

1169


Explain the advantages of inheritance.

1151


What is purpose of inheritance?

1113


What do you mean by overloading?

1078


Can we define a class within the interface?

1044


What does and I oop mean?

1197


What is for loop and its syntax?

1086


What is constructor in oop?

1118


What is overloading in oop?

1012


What is difference between inheritance and polymorphism?

1030


Where is pseudocode used?

1109