What is the difference between an interface and an abstract class?
Example:
Abstract class example:
abstract class Shape {
abstract void draw();
}
Interface example:
interface Shape {
void draw();
}
복습용 저장
복습용 저장
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.