- abstract class Student
- {
- abstract void Study();
- }
- class BaseStudent extends Student
- {
- void Study()
- {
- System.out.println("base study");
- }
- }
- class AbstractDemo
- {
- public static void main(String[] args)
- {
- BaseStudent s=new BaseStudent ();
- s.Study();
- }
- }
复制代码 |
|