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 k kanani

Hierarchical Inheritance
class kar (base class)
{

}
class moh:public kar (derive class of kar and base class of
leo class)
{
}
class rip:public kar (derive class of kar and base class of
leo class
{
}
class leo:public moh,public rip (derive class of moh class
& rip class)
{
}

Is This Answer Correct ?    23 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the three main types of variables?

1176


Which method cannot be overridden?

1168


What are the benefits of polymorphism?

1358


What is the difference between abstraction and polymorphism?

1150


Why is abstraction needed?

1091


Can we have inheritance without polymorphism?

1077


Can a varargs method be overloaded?

1155


How is class defined?

1202


Plese get me a perfect C++ program for railway/airway reservation with all details.

3954


What are the 4 main oop principles?

1264


Why is polymorphism used?

1084


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6727


Why we use classes in oop?

1094


What is new keyword in oops?

1099


What is the highest level of cohesion?

1110