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 error and an exception?

1145


What is a default method? Why do we need default methods in java 8 interfaces?

1133


Can you instantiate an abstract class and what is an inner class?

1016


Can we override a method by using same method name and arguments but different return types?

1001


Can encapsulation be called as a security device?

1039


What is the difference between a virtual method and an abstract method?

986


A class inherits from 2 interfaces and both the interfaces have the same method name as shown below. How should the class implement the drive method for both car and bus interface?

1025


Is is possible to define our own functional interface?

1123


Can I implement polymorphism using abstract class?

1057


Difference between encapsulation and data hiding ?

952


What are the limitations of oops?

1060


What interface must an object implement before it can be written to a stream as an object?

1122


Explain about polymorphism?

1165


Can a class in java be inherited from more than one class?

988


Explain what is polymorphism?

1126