I wrote my Interface code already, but error. How can I compare two prices of two furniture objects? Am I doing it right in the if statements? The return
statement says cannot find symbol. How can i fix this?
public boolean IsCheaper(Furniture f)
{
if (f instanceof Furniture)
{
boolean status;
if (price > f.getPrice())
status = true;
else if (price < f.getPrice())
status = false;
}
return status;
}