标签:static highlight new pac public class oid ret bst
/*关键字*/ package com.baidu.www; abstract class A { private String name; public A(String name) { this.name=name; } public String getName() { return this.name; } public abstract void fun(); } class B extends A { public B(String name) { super(name); } public void fun() { System.out.println(super.getName()); } } public class GM { public static void main(String[] args) { B b =new B("爱你一万年"); b.fun(); } }
标签:static highlight new pac public class oid ret bst
原文地址:http://www.cnblogs.com/chengxuyuanGM/p/7826219.html