class Quadrangle{ public static void draw(Quadrangle q){ //代码块 } } public class parallelogram extends Quadrangle{ public static void main(String[] args){ parallelogram p=new parallelogram(); draw(p); } }
kangtage
一条小咸鱼
相关分类