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...

What is inheritance?

Answer Posted / sri

Inheritance is a type of relationship among classes, wherein
one class shares the structure or behaviour defined in one
(single inheritance) or more (multiple inheritance) other
classes. Inheritance defines a "kind of" hierarchy among
classes in which a sub class inherits from one or more
super-classes; a sub-class typically augments or redefines
the existing structure and behaviour of its super-classes.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between an Abstract class and Interface?

993


What is constructor and virtual function? Can we call virtual funciton in a constructor?

959


What is serialization? How do we implement serialization actually?

892


Explain what is single and multiple inheritance?

930


What is the difference abstract class and interface?

933


Explain serialization and overriding?

1019


What is the difference between a class and a structure?

925


Explain the concept of multiple inheritance (virtual inheritance). Write about its advantages and disadvantages?

960


What is data encapsulation and what's its significance?

999


Why do we use oops concepts? What is its advantage?

993


How many methods are there in the externalizable interface?

960


What is the benefit of using inheritance?

990


Can a class implement two interfaces having default method with same name and signature?

959


Is it possible to override private virtual methods?

923


Can we access interface static method using interface references?

1004