登录
首页 » Java » GeometricVersion3

GeometricVersion3

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

  • super-pixel
    基于熵率的超像素分割代码,是顶级会议上的代码(Entropy Rate Superpixel Segmentation)
    2013-07-07 11:06:55下载
    积分:1
  • imresize
    图像插值算法有三种方法,最近邻插值、双线性插值、卷积插值(Image interpolation algorithm has three methods, nearest neighbor interpolation, bilinear interpolation, convolution interpolation)
    2008-05-12 10:07:55下载
    积分:1
  • krogager_decomp
    极化SAR图像处理中 相干目标的 KROGAGER分解程序(Polarization SAR image processing in coherent goal decomposition process KROGAGER)
    2008-12-13 11:18:26下载
    积分:1
  • text1
    对数字图像的处理、灰度化等,对数字图像进行基本的操作与处理(Basic digital image manipulation and processing of digital image processing, gray,)
    2013-03-27 10:20:40下载
    积分:1
  • ICP-point-cloud-registration
    三维激光点云配准是点云三维建模的关键问题之一。经典的 ICP 算法对点云初始位置要求较高且配准 效率较低,提出了一种改进的 ICP 点云配准算法。该算法首先利用主成分分析法实现点云的初始配准,获得较好 的点云初始位置,然后在经典 ICP 算法的基础上,采用 k - d tree 结构实现加速搜索,并利用方向向量夹角阈值去除 错误点对,提高算法的效率。实验表明,本算法流程在保证配准精度的前提下,显著提高了配准效率。 (Three-dimensional laser point cloud registration is one of the key three-dimensional point cloud model. High classical ICP algorithm to the initial position of the point cloud registration requirements and low efficiency, proposed an improved ICP point cloud registration algorithm. Firstly, the use of principal component analysis of the initial point cloud registration, get a better initial position of the point cloud, then the basis of classical ICP algorithm using k- d tree structure to achieve speed up the search, and using the direction vector angle the removal of the threshold point error and improve the efficiency of the algorithm. Experiments show that the algorithm processes to ensure the accuracy of registration under the premise, significantly improve the efficiency of registration.)
    2016-08-01 10:34:57下载
    积分:1
  • trialmat
    符合高斯分布的关于随机粗糙表面的生成代码(Meet the Gaussian distribution of the random rough surface on the generated code)
    2021-05-14 02:30:02下载
    积分:1
  • testDetect
    直方图的计算与显示分析图像、物体和视频信息过程,我们常把看到的物体用直方图(histogram)表示,直方图可以用来描述各种不同的事情,如物体的色彩分布、物体边缘梯度模板,以及表示目标位置的概率分布(Calculation and analysis of the histogram display images, objects and video information process, we often see objects with the histogram (histogram) indicates, the histogram can be used to describe a variety of different things, such as the color distribution of objects, object edges gradient templates, and the probability distribution of the target position)
    2013-11-12 14:49:32下载
    积分:1
  • GPExpand
    图像金字塔分解与图像金字塔重构matlab 程序,我试过了,很不错(Image pyramid decomposition and reconstruction of image pyramid matlab program, I tried, very good)
    2009-03-12 20:03:28下载
    积分:1
  • test3
    利用Artoolkit实现了虚拟现实的算法,VS2008下测试通过(Use Artoolkit algorithm to achieve a virtual reality, VS2008 under test)
    2013-12-12 12:39:48下载
    积分:1
  • target-tracking
    基于meanshift算法的目标跟踪,主要是基于opencv车辆跟踪!!!程序当中进行简单的图像分割(Based on the meanshift algorithm of image segmentation and target tracking.)
    2013-08-21 10:45:45下载
    积分:1
  • 696516资源总数
  • 106409会员总数
  • 8今日下载