[Java 소스] 추상화 예 public abstract class Musician { public abstract void play(); } public class Pianist extends Musician{ @Override public void play(){ System.out.println("딩동댕"); } } public class Program { public static void main(String[] args){ Pianist pianist = new Pianist(); pianist.play(); } } 실행 결과랄라라 본문 [Java] 5. 3 추상화