登录
首页 » Java » GeometricVersion3

GeometricVersion3

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

  • c# 一个简单的GDI画实例
    入门级GDI画图实例
    2013-04-23下载
    积分:1
  • Bow-image-retrieval-master
    说明:  基于BoVW的图像特征提取,以及图像检索(Image feature extraction and image retrieval based on BoVW)
    2020-06-23 04:40:02下载
    积分:1
  • 43659358Matlab-GUI--for-Image-Segmentation--
    基于MATLAB GUI的图像处理界面,包括基本的图像处理功能(Graphical interface construction based on image processing)
    2019-04-23 17:27:02下载
    积分:1
  • psnr
    说明:  计算两幅图像的psnr值,非常精确完整,绝对好用(Calculation of two images of the PSNR values, integrity and very precise, the absolute ease of use)
    2008-10-25 11:47:31下载
    积分:1
  • Human-Motion-Tracking
    一个人体运动识别跟踪的示例程序,里面附带了一个运动视频,运行run.m文件。程序里包含了轮廓提取,跟踪算法,很好的tracking学习程序(A human motion recognition tracking sample program, which comes with a sports video, to run run.m file. The program includes a contour extraction and tracking algorithm, good tracking learning program)
    2012-07-18 19:23:35下载
    积分:1
  • WBBaayesianr
    我写的贝叶斯fusion的Visual C+++源码,简明易懂,提供参数说明 可直接使用。 (The Bayesian fusion the Visual C+++ of what I wrote source, easy-to-understand parameters can be used directly.)
    2012-09-30 11:17:27下载
    积分:1
  • SANBAN
    数字散斑相关程序,能够计算2副图片的位移,简单的例子,对初学者也许有用。(Digital speckle correlation program can calculate the displacement of two images, a simple example, may be useful for beginners.)
    2020-11-25 17:39:32下载
    积分:1
  • getargs
    自适应双边滤波,利用空域低通滤波和图像灰度信息的非线性组合,自适应的对背景进行抑制。(Adaptive bilateral filtering, the use of the airspace low-pass filter and image grey scale information of nonlinear combination, adaptive to suppress background.)
    2016-03-17 13:30:49下载
    积分:1
  • LevelSet_ChunmingLi_v0(wzw)
    水平集图像分割代码,对应论文为Li C, Xu C, Gui C, et al. Level set evolution without re-initialization: a new variational formulation[C]//Computer Vision and Pattern Recognition, 2005. CVPR 2005. IEEE Computer Society Conference on. IEEE, 2005, 1: 430-436.(Level set image segmentation code, the corresponding papers of Li C, Xu C, Gui C, et al Level set evolution without re-initialization:.. A new variational formulation [C]// Computer Vision and Pattern Recognition, 2005 CVPR 2005 IEEE. Computer Society Conference on IEEE, 2005, 1:. 430-436.)
    2014-03-16 16:39:07下载
    积分:1
  • fdct_wrapping_denoise
    Curvelet变换进行图像去噪,Matlab7.0程序(Curvelet transform for image denoising, Matlab7.0 procedures)
    2008-12-12 09:20:55下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载