2. Write a interface "Car" with the following methods
void setName(String)
String getName()
void setColor(String)
String getColor()
void setModel(long)
long getModel()
Answer / suresh sa
interface car{
void setName(String s);
String getName();
void setColor(String color);
String getColor();
void setModel(long model);
long getModel();
}
I Think u r trying to create getter and setter fields for
the above parameters better go for POJO, rather than going
for interface
Is This Answer Correct ? | 1 Yes | 0 No |
What is markup language?
whats the relation ship between LDAP and JNDI?
what is difference between business deligate and session facade ?
What is need of DAO? Write one simple DAO example?
which book is the best for preparing for SCWCD 1.5
what is class/object diagram
How do I find jre path in windows?
Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance
Which is the better framework for web applications, struts or spring, and why?
what is acl(access control list)?
What is an algorithm in java collection framework? : java collections
What is Visual Source Safe(source control Tool)?