package com.abs;
abstract class AbsEx1{
int a = 100;
public int getA(){
return a;
}
//추상메소드
abstract public String getStr();
abstract public int getB();
}
abstract class AbsEx2 extends AbsEx1 {
String str = "신세계";
//AbsEx1의 추상 메서드 getStr()를 구현
public String getStr(){
return str;
}
//추상메소드
abstract public int getC();
}
public class Exten02 extends AbsEx2{
public int getB(){
return 100;
}
public int getC(){
return 200;
}
public static void main(String[] args){
//추상클래스는 객체 생성 불가
//AbsEx2 ab = new AbsEx2();
Exten02 e = new Exten02();
}
}