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
Explain main thread under thread class execution?
What is jboss in java?
What is difference between map and flatmap in java 8?
Can I have multiple main methods in the same class?
Are jvm’s platform independent?
What is entitymanager in java?
How do I enable java in google chrome?
What is the difference between a jdk and a jvm?
I run a web server. Am I at risk? : java security
How do you count in java?
Describe life cycle of thread?
What is java language expression?
What is a stream in programming?
In which language eclipse is developed?
Where is singleton design pattern used in java?