第二十二次发博不知道用什么标题好

package Test;

public class lengthandwidth {
    private int length;
    private int width;

    public void setlength(int length) {
        this.length = length;
    }

    public void setwidth(int width) {
        this.width = width;
    }

    public int getlength() {
        return length;
    }

    public int getwidth() {
        return width;
    }

    public int area() {
        return length * width;
    }

}



package Test;

public class Vaaaa extends lengthandwidth {
    public int hight;

    public Vaaaa(int hight) {
        this.hight = hight;
    }

    public int tj() {
        int t;
        t = super.area() * hight;
        return t;

    }
}


package Test;

public class Tttj {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Vaaaa c1 = new Vaaaa(20);
        c1.setlength(10);
        c1.setwidth(30);
        System.out.println(c1.tj());
    
        

    }

冻死了,一日历尽四季冷,千载难逢万木春.....(哈哈哈突然蹦出来的什么鬼东西)

posted @ 2019-04-29 01:02  18软工8班段诗媛  阅读(102)  评论(0编辑  收藏  举报