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

What is the purpose of jdk?

836


What are the authentication modes in asp.net? : java security

889


What is the use of lambda functions?

880


what is reflection api? How are they implemented?

958


Is openjdk the same as jdk?

874


What is a driver in java?

885


What is java ioc?

817


What is xml file in java?

885


Who is at risk in java? : java security

902


What is savepoint in java?

801


Define network programming?

989


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?

1974


Is jprofiler open source?

853


How does java handle integer overflows and underflows?

963


What do you understand by casting in java language? What are the types of casting?

804