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
What is class forname java?
What are jpa repositories?
What is java net url?
Explain the encapsulation principle.
Can we extract main method from another class?
How do I open the java console in windows 10?
In which language eclipse is developed?
What is javabeans api?
Who created eclipse?
What is connection pooling in java?
Who developed rxjava?
Which instutute is offering course for rhino jain slee
What is java lang noclassdeffounderror?
What is property file in java?
Can optional be null?