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 |
wnet use DAO design in u r project?
How many controlers are there in spring? Plz send me ans
how to delete cookie information?and when it will delete?
Which is the better framework for web applications, struts or spring, and why?
Which interface does java.util.hashtable implement?
what is difference between struts1.2 and struts2.0
Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword
How do you debug your java program?
What is the use of the list interface in the java collection? : java collections
What is the difference between Eclipse and MyEclipse?
How do I find jre path in windows?
Write a postfix expression to (a*(b+c/d)*d-e)