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
For each of the following program segments,give a big zero
analysis for the running time
1.For (i=0;i Java prints out a ton of digits when I system.out.println() a double. How can I format it so it displays only 3 digits after the decimal place? Can optional be null? What is savepoint in java? What is the difference between map and flatmap in java? Why do we create dto in java? Write a program for the following topic - switch
case,looping using fuction calling,nesting,console input
output.
Aim- to print a menu:-
1-series
2-single value. Each menu having sub menu armstrong or
perfect. What are jpa annotations? What are tags in java? What is a context in java? What does persist mean in java? Explain the inheritance principle. How many types of jdk are there? can a program use more than one command-line argument? i have client interview in TCS.client is CITI BANK.how to
face it,what type of questions they will ask,please tell
send me to kumar525job@gmail.com