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 / raghava

OOOOOO!NOooooooooo.

is a relationship is (inheritence)

has a relationship is (composition or Assocation)

Example:
Has a relation

public class Address
{
String street;
String city;

.......

}

public class Person
{
String name;
Address address; //has a relationship
}

Is This Answer Correct ?    82 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are locale settings?

1033


How do you do exponents in java?

1100


Can we override constructor?

1083


describe method overloading

1081


What does \ mean in regex?

1320


What are "class access modifiers" in Java?

1208


What is the full name of java?

1181


Is it safe to install java on my computer?

1230


What is string english?

1072


Why string objects are immutable in java?

1086


What are accessor methods in java?

1058


How do you create immutable object in java?

1105


What is the difference between a loader and a compiler?

1090


How do you escape in java?

1137


What is Java Annotations?

1178