⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 圆锥.java

📁 java源程序,两个类之间的函数转换,实现相应功能
💻 JAVA
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package 阶段练习一;/** * * @author lenovo */public class 圆锥 {  圆 底圆;   double 高;   圆锥(圆 circle,double h) {   this.底圆=circle;       this.高=h;   }  double 计算体积() {   double volume;      volume=底圆.计算面积()*高/3.0;      return  volume;  }  void 修改底圆半径(double r) {   底圆.修改半径(r);  }  double 获取底圆半径() {   return 底圆.获取半径();  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -