登录
首页 » Java » GeometricVersion3

GeometricVersion3

于 2020-12-10 发布 文件大小:21KB
0 279
下载积分: 1 下载次数: 16

代码说明:

  课程设计 几何图形(满分50 分) 版本1:满分10 分 设计抽象类GeometricObject 及其子类Triangle 和Circle。 GeometricObject 类设计要求如下: ■ 一个名为color 的Color 类型的私有数据域,表示对象的颜色。 ■ 一个名为filled 的Boolean 类型的私有数据域,表示对象是否填充颜色。 ■ 一个名为dateCreated 的Date 类型的私有数据域,表示对象的创建日期。 ■ 一个无参构造方法。 ■ 一个能创建特定color 和filled 的有参构造方法。 ■ 相关数据域的访问器和修改器。 ■ 两个个名为draw 和erase 的抽象方法。 ■ 一个名为getArea 的抽象方法。 ■ 一个名为getPerimeter 的抽象方法。 ■ 重写toString 方法。 Triangle 类设计要求如下: ■ 三个名为side1、side2 和 side3 的double 类型的私有数据域表示三角形的三条边。它 们的默认值是1.0。要求三个数据域保留2 位小数。 ■ 一个无参的构造方法创建默认三角形。 ■ 一个能创建带指定side1、side2 和 side3 的有参构造方法。 ■ 所有三个数据域的访问器和修改器方法。 ■ 父类抽象方法的实现。 ■ 重写toString 方法。 Circle 类(Curriculum Design Geometry (out of 50) Version 1: 10 points Design an abstract class and its subclasses GeometricObject Triangle and Circle. GeometricObject class design requirements are as follows: ■ a named color of the Color type private data field that indicates the object s color. ■ a Boolean type called filled private data field that indicates whether the object fill color. ■ Date type named dateCreated private data field, which means that the object was created. ■ a no-argument constructor. ■ one can create a specific color and filled in with arg constructor. ■ Related data field accessor and modifier. ■ two months called draw and erase the abstract methods. ■ an abstract method named getArea. ■ an abstract method named getPerimeter. ■ overridden toString method. Triangle class design requirements are as follows: ■ three named side1, side2 and a double side3 private data field indicates the type of triangle with three sides. It Our default value is 1.0. Requires)

文件列表:

GeometricVersion3
.................\.classpath,295,2013-05-18
.................\.gitignore,5,2013-05-18
.................\.project,376,2013-05-18
.................\bin
.................\...\GeometricVersion3
.................\...\.................\Circle.class,1747,2013-06-19
.................\...\.................\GeometricObject.class,238,2013-06-19
.................\...\.................\GeometricVersion3$1.class,1843,2013-06-19
.................\...\.................\GeometricVersion3$2.class,793,2013-06-19
.................\...\.................\GeometricVersion3$3.class,1420,2013-06-19
.................\...\.................\GeometricVersion3$4.class,793,2013-06-19
.................\...\.................\GeometricVersion3$5.class,982,2013-06-19
.................\...\.................\GeometricVersion3$6.class,984,2013-06-19
.................\...\.................\GeometricVersion3$7.class,983,2013-06-19
.................\...\.................\GeometricVersion3$8.class,985,2013-06-19
.................\...\.................\GeometricVersion3$9.class,928,2013-06-19
.................\...\.................\GeometricVersion3$DrawArea.class,1604,2013-06-19
.................\...\.................\GeometricVersion3.class,4180,2013-06-19
.................\...\.................\test.class,506,2013-06-19
.................\...\.................\Triangle.class,1778,2013-06-19
.................\src
.................\...\GeometricVersion3
.................\...\.................\Circle.java,1587,2013-05-29
.................\...\.................\GeometricObject.java,462,2013-05-29
.................\...\.................\GeometricVersion3.java,6418,2013-05-29
.................\...\.................\test.java,294,2013-05-28
.................\...\.................\Triangle.java,1596,2013-05-29

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Brent算法为结合黄金分割法和抛物线法的一维搜索方法
    Brent算法为结合黄金分割法和抛物线法的一维搜索方法(one dimension search)
    2020-07-09 12:08:55下载
    积分:1
  • matlab运算
    说明:  最简单的进行两图像的加减和异或,同或,运算。(The simplest operation is to add and subtract two images, and to add and subtract two images.)
    2019-02-27 15:56:16下载
    积分:1
  • image
    Image processing of band reject filter and archive particular bit of an 8 bit pixel of an image
    2013-09-28 18:40:35下载
    积分:1
  • loci
    实现用帧差法画质心轨迹 高斯背景建模 可以运行的程序 opencv(Picture frame difference method implemented by the loci of Gaussian background modeling)
    2014-05-19 21:27:37下载
    积分:1
  • test
    matlab光学仿真,模拟光线的反射、折射;非常强大的光学仿真软件。(Matlab optical simulation,Simulate the reflection and refraction of light;;very powerful optical simulation software.)
    2020-07-29 14:38:40下载
    积分:1
  • image-segmentation
    用matlab实现自适应图像阈值分割最大类方差法代码(Using MATLAB to achieve adaptive threshold image segmentation Otsu method code )
    2013-01-29 10:02:41下载
    积分:1
  • read-and-save-the-dicom-type-image
    医学图像大部分都是dicom图像,这里提供dicom图像读取、显示和保存的matlab代码,以为医学图像处理初学者提供学习。 (Dicom medical images are mostly images, here to read dicom image, display, and save the matlab code, provided that the medical image processing for beginners to learn.)
    2011-05-23 23:30:48下载
    积分:1
  • Gradient-vector-diffusion-denoising
    梯度矢量扩散控制实现边缘保持的彩色图像去噪(Gradient vector diffusion denoising realize control color image edge preserving )
    2014-09-13 14:34:09下载
    积分:1
  • Block-matching(Matlab)
    用块匹配法求超分辨率复原中的运动矩阵!提出了一种快速,半像素的三步法!(Block-matching method using super-resolution recovery of movement in the matrix! Presents a fast, three-step half-pixel!)
    2009-06-14 22:18:20下载
    积分:1
  • 1-(5)
    图形处理,Visual C++数字图像识别技术典型案例源代码 5(Graphics processing , the Visual C++ digital image recognition technology to a typical case of source code 5)
    2012-02-29 11:13:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载