0729

HC·2022년 7월 29일

정리가 필요한 개념
super();
@Override -이미 있는 메소드를 재정의해서 쓴다는 뜻
@Override와 추상메소드
abstract
implements
Object 의 개념. (Object o) -오브젝트는 모든 클래스가 될 수 있고, 모든 클래스는 오브젝트가 될 수 있다.
toString의 정확한 사용법
error - he type CheckingAccount must implement the inherited abstract method BankAccount.getAccountType()

public boolean equals(Object o) {
	Book b = (Book)o;
	if (this.title.equals(b.getTitle()) && this.author.equals(b.getAuthor())) {
		return true;
	}else {
		return false;
	}
}
profile
오류보고

0개의 댓글