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
Where is singleton design pattern used in java?
What are the advantages of lambda functions?
What is a flatmap?
What's a code group? : java security
Are the actual permissions for the application defined at run-time or compile-time? : java security
What is ibatis in java?
Explain daemon thread.
What is meant by swing in java?
What is jdk for netbeans ide?
How should I format my code? How should I comment my code?
Why do we need framework in java?
Java prints out a ton of digits when I system.out.println() a double. How can I format it so it displays only 3 digits after the decimal place?
Can we write lambda without functional interface?
What's the difference between local, global and universal groups? : java security
there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.