在说明柔性多态之前先看看下面多态的设计
一般常规的多态程序设计,首先定义多态接口
public interface IShape3 {    public float getArea();
}然后在实体类中重写多态函数
public class Circle3 implements IShape3 {    float r;    public Circle3(float r){        this.r = r;
    }    public float getArea(){        return r*r*(float)Math.PI;
    }
}public class Rect3 implements IShape3 {    private float width,height;    public Rect3(float width,float height){ &
        
		
		
    	
    	
        	
        

