登录
首页 » Java » GeometricVersion3

GeometricVersion3

于 2020-12-10 发布 文件大小:21KB
0 127
下载积分: 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 个回复

  • ReadWordXML.java
    DOCX Parser, extracts inline images quiz
    2016-11-30 04:43:13下载
    积分:1
  • Information-Hiding-Technology-
    信息隐藏技术实验教程 源代码 武汉大学出版社出版(Information Hiding Technology Experiment tutorial source code Wuhan University Press)
    2021-03-13 14:29:24下载
    积分:1
  • ex2
    说明:  Ostu分割方法实现 根据原理编写Ostu程序,对cameraman灰度图片进行分割;并对获得的前景与背景,分别再进行一次分割;(Implementation of Ostu segmentation method According to the principle, the Ostu program is compiled to segment the gray image of cameraman, and the foreground and background are segmented again;)
    2019-11-12 11:16:29下载
    积分:1
  • dwtwat
    DWT的彩色水印嵌入算法,而且嵌入的水印附图像是彩色的。(DWT color watermark embedding algorithm, and the embedded watermark such as color drawings.)
    2007-08-14 20:08:16下载
    积分:1
  • a-trimmed-filter
    Contra Harmonic Mean and Alpha Trimmed Filter alpha剪枝滤波器(Contra Harmonic Mean and Alpha Trimmed Filter alpha pruning filter)
    2013-04-15 09:41:12下载
    积分:1
  • RanSacCode
    该代码用于对错误匹配点进行过滤操作,即去除错误的匹配点(The code is used to remove the wrong match points,and make sure the right matching.)
    2014-12-31 11:17:07下载
    积分:1
  • svt
    利用 svt算法解决 Rpca算法的放缩问题,牛刀小试,大家见谅!(Solves the Robust PCA relaxation)
    2020-06-29 04:00:02下载
    积分:1
  • RF_Class_C
    用于对图像特征的分类,随机森林算法是一类很好的算法(For the classification of image features, random forest algorithm is a kind of a good algorithm)
    2020-12-25 21:39:04下载
    积分:1
  • 基于无损压缩的加密可逆信息隐藏_郑淑丽
    针对现有方法存在的隐藏容量低、操作不灵活的缺陷,文章提出了一种基于无损压缩的加密图像可逆 信息隐藏算法。(In view of the defects of low hiding capacity and inflexible operation of the existing methods, this paper proposes a reversible information hiding algorithm for encrypted images based on lossless compression.)
    2020-11-05 16:09:52下载
    积分:1
  • BeyondtheKalmanFilterParticlefiltersfortrackingapp
    一篇介绍粒子滤波的资料,介绍的很详细,适合研究粒子滤波的初学者,希望对大家有帮助(Introduce a particle filter information on the very detailed study of particle filter is suitable for beginners)
    2021-03-11 14:19:25下载
    积分:1
  • 696518资源总数
  • 104269会员总数
  • 31今日下载