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


    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());
        
            
    
        }
    
    

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

  • 相关阅读:
    [Docker] Windows 宿主环境下,共享或上传文件到容器的方法
    [Docker]
    [Docker]
    [Docker]
    [Windows]
    [Linux] 树莓派 4B 安装 Ubuntu 19.10 (Eoan Ermine) IOT 版
    [Linux]
    [.Net] 什么是线程安全的并发集合
    [IOT]
    c++库大全
  • 原文地址:https://www.cnblogs.com/shi-yuan/p/10788106.html
Copyright © 2020-2023  润新知