搜索资源列表
hm6
- 抽象类的使用 设计一个类层次,定义一个抽象类--形状,其中包括有求形状的面积的抽象方法。 ----继承该抽象类定义三角型、矩形、圆。 ----编写一个主程序将一个三角形、矩形、圆存入一个数组中,将数组中各类图形的面积输出。-kind of abstract designs a class hierarchy, the definition of an abstract category -- shape, These include the shape of the area fo
Print_Mesure_GeometricShape
- 此程序可实现:在可视化界面中随即生成一些图形(长方形、椭圆、圆、正方形);程序会自动告诉你所生成的图形的形状并计算这些图形的面积;最后程序会自动统计各个图形的分布。-this procedure can be achieved : the visual interface immediately generated some graphics (rectangular, oval, round, square); the program will automatically tell you g
编写求解几何图形周长、面积的应用程序
- 编写求解几何图形周长、面积的应用程序,要求如下: 1) 几何图形要求至少包含直线、三角形,矩型,圆等类型,计算周长,面积等。 2) 要求能计算两个图形之间的距离 3) 要求能计算两个图形进行布尔运算(即交、并、差)后的面积(可选作)。 4) 必须用到继承、接口、多态和包 -It s good.
分别定义图形类Shape(抽象基类)
- 分别定义图形类Shape(抽象基类),继承类矩形类Rectangle、正方形类Square、 圆形类Circle;并且计算周长和面积。在另一个main函数中分别创建矩形、 正方形和圆形对象,设置所需的属性值,打印其周长和面积。(备注:只要把该文件解压,把里面的东东COPY去即可使用)-Graphics categories are defined Shape (abstract base class), the succession of quasi-rectangular type R
Java_biancheng
- 本实例通过对一个Java程序的开发过程,详细说明了如何使用面向对象思想实现Java编程,给出了作者的经验之谈。程序是这样的:当用户输入一个图形(例如:圆或正方形)的必要参数,将显示该图形的面积和周长。 -This instance of a Java program through the development process, detailing how to use the object-oriented Java programming to achieve given the a
Tuxing
- 编写求解集合图形周长,面积的应用程序,要求集合图形要求至少包含直线,三角形,矩形等类型,能计算出两个图形之间的距离。-The preparation of a collection of graphics to solve perimeter, area of application, requirements include a collection of graphics requires at least linear, triangular, rectangular and other
java
- 编写求解几何图形(如三角形,矩型,圆,多边型)的周长的应用程序,其中相关参数要求用户输入,并将结果按照图形名称写入一个名为“几何图形面积.txt”的文件中-It s useful. please download.good good.come on.
321321432
- 组合图形面积计算flash课件源程序讲课详实,非常不错-Portfolio flash graphics area calculation source courseware
TCPSocketTrangle
- 使用Java开发的利用Socket开发的图形化界面,计算三角形面积,可以实现一对多的通信-TSPSocket trangle
meiju
- 定义一个接口,他至少包含一个可以计算面积的成员的方法。然后,编写实现该接口的两个类:正方形类和圆类。接着编写一个具有泛型特点的类,要求利用这个类可以在控制台窗口中输出没肿图形的面积,而且这个类的类型变量所对应的实际类型可以是前面编写的正方形类和圆类。最后利用这个具有泛型特点的类在控制台窗口中分别输出给定变长的正方形的面积和给你个半径的圆的面积。-define a interface,including which containing at least a can of calculating
tuxing
- 用图形界面 计算矩形椭圆面积周长 可以画图-Graphical interface
AreaAndLength
- 用类方法实现圆和三角形梯形等图形的面积及周长-Area And Length
TestShape
- 写一个父类图形(Shape)(无属性,方法:计算周长,计算面积), 两个子类:矩形(Rect 属性:长,宽;方法:计算周长,计算面积), 圆形(Circle 属性:半径 方法:计算周长,计算面积) 并写一个测试类TestShape,含main方法,创建各个类的对象,用参数化构造方法为属性赋值,输出各个图形的周长和面积。-Write a parent class graphics (Shape) (no properties, methods: calculating p
java
- 图形计算,简单的面积,周长,距离计算,包括圆,三角形,矩形等。-Graphic terms, a simple area, perimeter, distance calculation, including circles, triangles, rectangles and so on.
08712097
- 图形画法、图形面积计算、画圆、画长方形、正方形-draw
triangle
- 输入三条边输出三角形的图形和面积 输入三条边输出三角形的图形和面积-Enter the three sides of the output graphics and area of the triangleEnter the three sides of the output graphics and area of the triangle
Abstract
- 如何使用抽象方法的示例。用抽象类实现对长方形,正方形,圆形面积的计算,然后实现对随机产生的是个图形面积的累加(图形的形状和长、宽、半径均随机产生)-Abstract class implements a pair of rectangular, square, circular area is calculated, and then implement the randomly generated graphics area accumulate (the shape of the graph
Triangle
- Java虚基类的应用 三角形类及椭圆类继承点线类,点线类继承图形类,实现图形面积的计算-Application triangle and oval-class class class inherits dotted line Java virtual base classes, class inheritance dotted line graphics class, to achieve the graphic area calculation
shiyan6
- 计算简单图形面积(三角形矩形等图形的功能)-Calculate simple graphics area
AddArea
- <1> 定义接口Quadrable.java <2> 定义多个可计算图形面积的图形类(至少三个:Circle、Rectangle、Triangle)。每个类均需要实现接口Quadrable,位于shape包中。类的其他部分可根据需要设置,如:定义Triangle类的话,可以有表示3条边长的数据域。 <3> 定义一个Client类,其中的main方法中建立一个ArrayList和一个数组,调用ShapeUtils类中的两个方法计算面积之和。-
