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
What is connection pooling in java?
What is a dao layer in java?
What java systems libraries and methods are available for me to use?
Is java an api?
What about 'hostile applets'? : java security
What are the advantages of java 8’s date and time api over old date api and joda time api?
What is a controller in java?
What is interceptor in java?
What is a singleton in java?
How can one prove that the array is not null but empty?
Describe life cycle of thread?
What is web xml java?
Why there are no global variables in java?
Spring framework ---Can somebody explain me in easily understandable format about AOP, IOC and DI, so that i can explain in interview rather than just telling what is available in net. I am not able to understand that also. I am new to Spring
What is setstring method in java?