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 the purpose of jdk?
What are the authentication modes in asp.net? : java security
What is the use of lambda functions?
what is reflection api? How are they implemented?
Is openjdk the same as jdk?
What is a driver in java?
What is java ioc?
What is xml file in java?
Who is at risk in java? : java security
What is savepoint in java?
Define network programming?
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?
Is jprofiler open source?
How does java handle integer overflows and underflows?
What do you understand by casting in java language? What are the types of casting?