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

Employee has a Passport. here employee is an object and
passport is an object, give the class design

Answer Posted / swati

Its a bidirectional association where is you can find
employee using passport AND find a passport using employee

Class Employee{
Name -
Address
Passport
}

Class Passport{
Name
Address
}

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is data persistence in java?

1039


What are the rules regarding quotation marks?

953


What is stateless class in java?

955


What are jpa annotations?

920


What can open a jar file?

932


Does netbeans need jdk?

897


When is static variable loaded? Is it at compile time or runtime? When exactly a static block is loaded in java?

949


What is meant by rest api in java?

946


What is dao in java?

976


What is a java executable jar file?

1024


When a thread is created and started, what is its initial state?

973


How do I install java re?

916


What is javacpl?

927


Why sun introduce concept of anonymous class? What is need and real life use of anonymous class

2215


Why are lambda functions called lambda?

927