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 / dhanshrikekre@yahoo.com

as much i cn understand ur questn..its lyk
emp. obj has the properties of passport obj.
class passport1
{

}
class employee1 extends passport
{
}

its a concept of inheritance..
class TMain
{
p s v m()
{
//obj of emp..1 as employee;
//it 'l access pass..1 class
//it cn b chckd by making passport obj.
}
}

}

Is This Answer Correct ?    2 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a yaml file in java?

963


Explain the inheritance principle.

909


Explain the encapsulation principle.

893


What is optional in java 8? What is the use of optional?advantages of java 8 optional?

903


What is a cookie in java?

926


What is cdi bean in java?

969


What is web xml java?

859


What type of parameter passing does java support?

828


What is a java singleton?

926


What is @resource annotation in java?

888


Are jvm’s platform independent?

889


What is the first argument of the string array in main method?

944


For each of the following program segments,give a big zero analysis for the running time 1.For (i=0;i

1919


what is reflection api? How are they implemented?

998


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

906