녀석의 메소드를 구현 당신이 날 마지막 두 라인이 인터페이스 자바
MenBook mbobject = (MenBook) other
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());
}
는
OrderedByPrice is an interface