[JAVA] - 인터페이스와 추상클래스 #126
Unanswered
Irisation23
asked this question in
Java
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
📝 구성
0. TL;DR 📚
다형성
에 기반되어 만들어졌다.다형성
은 부모클래스의 참조변수로 자식클래스의 인스턴스를 참조할 수 있도록 하는 것이다.1. 인터페이스(Interface)
public abstract
로 정의된다.public static final
상수로 정의된다.static
,default
,private
제어자를 붙여 클래스 같이 구체적인 메서드를 가질 수 있다.xxxable
형식으로 인터페이스 네이밍 규칙을 따름.2. 추상클래스(abstract Class)
단일 상속
만 가능하다.Beta Was this translation helpful? Give feedback.
All reactions