-
GeometricVersion3
课程设计
几何图形(满分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)
- 2020-12-10 08:59:18下载
- 积分:1
-
Matlab code for CS reocvery
压缩感知 图形图像 图像处理 数据恢复 代码(Data recovery of compressed sensing image image processing)
- 2018-01-31 21:01:31下载
- 积分:1
-
uuity7i
自适应模板更新的粒子滤波实时跟踪算法_赖作镁.zip(Adaptive template updating particle filter for real-time tracking algorithm _ Ryan magnesium. Zip)
- 2013-08-08 20:44:51下载
- 积分:1
-
Kyoshiyou
抗旋转攻击的数字水印方法,其鲁棒性和不可视性都有很强改进,尤其在抗旋转攻击方面。(Digital watermarking anti-rotation attack, its robustness and visibility has a very strong improvement, especially in the anti-rotation attacks.)
- 2020-11-02 16:19:53下载
- 积分:1
-
PF-Tracking
基于颜色特征向量的粒子滤波跟踪程序,修复了因粒子超过窗口范围出现ERROR的BUG,还包括了一些有助于粒子滤波学习的资料!!(color-based particle filter tracking, some bugs have been fixed, some information about PF Tracking is included too!!)
- 2013-10-26 22:34:33下载
- 积分:1
-
daopujisuan
很好的倒频谱计算程序,可立即生成图形,方便读者理解运用。(very good。)
- 2010-10-03 22:09:19下载
- 积分:1
-
matlabfor-two-dimensional-
matlab画二维折线图,通过此程序可以在matlab中绘制二维折线图(matlab draw two-dimensional line chart, through this program in matlab draw two-dimensional line chart)
- 2012-12-11 10:20:22下载
- 积分:1
-
NOMA
说明: simulation code matlab NOMA
- 2020-12-22 19:59:07下载
- 积分:1
-
32606208arnold~DFT
基于dft的数字水印算法,希望对大家有用(this is good)
- 2012-12-18 11:07:05下载
- 积分:1
-
jpegyasuo
jpeg压缩代码 An example for jpeg compression and the restoration。(The attached utility is a work I ve submitted to the university. It shows what a jpeg compression is all about.)
- 2013-11-19 11:35:58下载
- 积分:1