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 a yaml file in java?

569


Is jar an executable?

533


What is the difference between ec2 and lambda?

540


Which class is the superclass of every class?

596


Are the actual permissions for the application defined at run-time or compile-time? : java security

612






What is a jvm?

617


What's the difference between code-based security and role-based security? Which one is better? : java security

566


What are the benefits of a jar file?

607


Do I need both jdk and jre?

560


How do I export a java project?

550


What is the difference between a jvm and a jdk?

616


What is mime in java?

571


What is maven in java?

536


What is hql in java?

565


What is lazy loading in jpa?

509