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 the is a and has a relation ship in oops concept in
java?

Answer Posted / yogeshwar

is a
Relationship between a Class and its object.
Eg.
Class Car { ... }

Car maruti800=new Car();

here maruti800 is a car.
Relationship between Car and maruti800 ==> is a

the Person and Address is a suitable example for has a

Is This Answer Correct ?    2 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the program development process?

942


What are the differences between string, stringbuffer and stringbuilder?

987


Why is string class considered immutable?

1023


What is passing parameters in java?

1002


How can we run a java program without making any object?

1006


What is finally in Java?

1036


Explain scope or life time of local variables in java?

994


What do you mean by inner class in java?

1053


What is the static method?

1045


What is the intersection and union methods?

993


Is ++ operator thread-safe in java?

1140


Which class should you use to obtain design information about an object in java programming?

1051


Can you use abstract and final both with a method?

1029


Why there is no call by reference in java?

890


Can a constructor be protected?

1055