标签:
package test; class plus1 {public int add(int i){return i+1;} } class plus2 extends plus1 {public int add(int j){return j+10;} public int add1(int k){return super.add(k);} } public class Fruit { public static void main(String args[]) { plus2 f=new plus2(); System.out.println(f.add(1)); System.out.println(f.add1(1)); }
标签:
原文地址:http://www.cnblogs.com/sisi-job/p/4948159.html