Employee has a Passport. here employee is an object and
passport is an object, give the class design
Answer Posted / pawan kumar mangal
class Passport{
private int NO;
private Date Issue Date;
private Date Validity;
public int getNO(){}
}
class Employ{
private Passport pass;
public Passport getPassport(){}
}
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
Which interceptor is responsible for setting action javabean properties?
What can open a jar file?
What is a jvm?
How do I open my java console?
Why is javac not recognized?
1.can i use super keyword in normal class(not inheritance) to call any method?if so how can i call particular variable? 2.In the inheritance how can i access the particular variable from the base class(it containing 5 variables) using super keyword?
What are the advantages of java sockets?
What are jpa repositories?
How do I run a project in netbeans?
What is the use of flatmap in java 8?
What is spliterator in java se 8?
What is cdi bean in java?
Which framework is best for rest api java?
What is the meaning of the words public, static and void?
Why is lambda expression used?