Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Where is singleton design pattern used in java?

986


What are the advantages of lambda functions?

1030


What is a flatmap?

967


What's a code group? : java security

994


Are the actual permissions for the application defined at run-time or compile-time? : java security

1000


What is ibatis in java?

1036


Explain daemon thread.

1025


What is meant by swing in java?

1069


What is jdk for netbeans ide?

1104


How should I format my code? How should I comment my code?

1048


Why do we need framework in java?

904


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?

914


Can we write lambda without functional interface?

963


What's the difference between local, global and universal groups? : java security

987


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.

3077