帶參數(shù)的抽象類怎么用
package com.imocc;
public class Rectangle extends Shape {
?@Override
?public void Circumference(int length , int height) {
??// TODO Auto-generated method stub
?}
}
package com.imocc;
public abstract class Shape {
?public abstract void Circumference(int length,int height);
}
2016-02-29
Rectangle rect=new Rectangle();
rect.Circumference(1,1);