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

whats is inheritance?

Answer Posted / priyabrata patro

inheritance , name only mentions here that inherit.Listen inherit means it can be occupied by another one like father properties go to his sons, observer some automobiles you can get inheritance meaning there only ,like hero honda passion and passion plus , so , there are a lot of instance available which are related to inheritance.
So, inheritance is nothing but ,in programming language, occupying the properties of one class by another class.
for instance
public class Idemo{
public staic void m(){}
public void m1(){}
}
public class Idemo1 extends Idemo
{
public static void main(String args[]){
Idemo1 i=new Idemo1();
i.m();
i.m1();
}
}
but here it can not be called as inheritance
interface I{void fun1()}
interface I1
{void fun();}
interface I2 extends I,I1
{}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of javac exe?

1101


What programs use java?

967


What is the gregoriancalendar class in java programming?

1053


What is the default value of an object reference declared as an instance variable?

1131


What is the difference between math floor and math round?

1046


how to deploy tomcatserver to weblogic server? write d following steps?

1969


How do you convert an int to a string in java?

1141


What are user defined exceptions?

1058


Can an interface extend a class?

1006


Where is java located?

1060


Why do we need strings in java?

1001


Can private method static?

930


What is substring 1 in java?

1167


Is empty .java file name a valid source file name?

1130


What is an example of a keyword?

1111