使用staruml学习画类图



//这是startuml 把uml 转换成的java代码:

public
class Circle implements Ishape { private double _radius; public double getArea() { } public double getArea(); } public class Pizza implements Ishape { private double price; private Ishape _shape; public double getprice() { } public Ishape getshape() { } public double Pizza() { } public double getArea(); } public class Rectangle implements Ishape { private double _width; private Object _height; public double getArea() { } public double getArea(); } public interface Ishape { public abstract double getArea(); }



下面是关系图:


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM