What are the benefits\drawbacks about the design below?
Here is a simple example of the possible class design.
What are the benefits of doing it this way? vs. just dropping the interface class all together.
=================================
Public interface Car
{
public String getColor();
public void setColor();
}
==================================
public class CarImplement implements Car
{
private String color;
public String getColor()
{
return color;
}
public void setColor(String color)
{
this.color = color;
}
}
===================================
thanks