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 jersey in java?

879


Does netbeans need jdk?

831


explain how java se 8 data and time api solves issues of old java date api?

896


What are tags in java?

801


Why we use beans in java?

867


What is jdk jre and jvm?

935


In system.out.println(), what is system, out and println?

955


What is java bean class?

844


What is an interceptor in java?

788


What's the difference between code-based security and role-based security? Which one is better? : java security

853


Can an application have multiple classes having main method?

873


Is it correct to say that using parentheses can only change?

845


What is the meaning of loosely coupled in java?

827


What are the advantages of lambda functions?

892


Explain the encapsulation principle.

861