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 cdi bean in java?
Topic- looping,function overloading,nesting ,polymorphism. Aim - to write a function with a name buzz-buds,that will check whether the given numbers are buddies or not on the basis of no. of parameters passed during function calling.
Are there tuples in java?
What is meant by swing in java?
What is use of jpa?
How can c# app request minimum permissions? : java security
What is tight coupling in java?
What are the authentication modes in asp.net? : java security
What is resultsetmetadata in java?
What do you mean by exception handling?
Can a method be static and synchronized?
Why are lambda functions called lambda?
Can we use lambda without functional interface?
How do I run a java program from the command line?
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?