Guys could you help explain me the last 2 lines please
MenBook mbobject = (MenBook) other
does it mean that mbobject is an object of the class Menbook? and what does the Other mean?
public boolean moreExpensiveThan(Object other) {
If(other == null)
return false;
else if (getClass() != other.getClass())
return false;
else { MenBook mbobject = (MenBook) other;
return (sellingPrice() >= mbobject.sellingPrice());
}
Please note that OrderedByPrice is an interface