-
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
-
SST
利用ENVI二次开发功能实现IMAPP算法、Niclos算法求解MODIS海表温度。(Using the ENVI secondary development to achieve IMAPP algorithm, Niclos algorithm MODIS sea surface temperature.)
- 2016-04-13 20:09:56下载
- 积分:1
-
DeconvolutionCode
是国外大牛编写的,对图像进行二维反卷积恢复代码,该代码主要针对图像的失焦模糊。(Prepared by the large foreign cattle 2D deconvolution, image recovery code.)
- 2020-07-03 04:00:01下载
- 积分:1
-
不带晃动-动态背景
matlab 中的视频图像处理。可用的程序()
- 2017-09-17 14:19:06下载
- 积分:1
-
OSTU
说明: 用OSTU和KSW实现多阈值图像分割,matlab代码(Image Segmentation Using OSTU and KSW)
- 2019-05-14 16:22:31下载
- 积分:1
-
123
亚像素级cvFindCornerSubPix角点检测,可较为精确地对角点进行检测(The subpixel cvFindCornerSubPix corner detection)
- 2012-08-11 09:47:27下载
- 积分:1
-
gtcgdwh
vc编写数字图像处理的程序,其中有图像处理的各种方法的程序(Vc write a digital image processing program, including the various methods of image processing program)
- 2017-04-28 07:28:22下载
- 积分:1
-
houghtoedge
hough变换对圆的检测源代码,附带图片以及程序说明(hough transform the detection of circular source code, fringe shows and procedures Photo)
- 2006-09-10 09:17:41下载
- 积分:1
-
SingleCalibrate
基于opencv的相机单目标定程序,很好的学习资源,做图像矫正的可以看看~(Opencv based on a single target of the camera program)
- 2015-05-06 13:53:42下载
- 积分:1
-
EC1211Source
this is a project about animation. how do we form the shape to make it look like car, house abd so on. with the colours that wee like and the movement.
- 2009-05-29 21:31:36下载
- 积分:1