Description: Class package
1. Purpose of the experiment
Use the class to encapsulate the object properties and functions.
2. Experimental requirements
(1) write a simple Java application, the program defined three categories: Tangle, Lader and the Circle, were used to characterize the "triangle", "ladder" and "round", the specific requirements are as follows:
Tangle class of the three edges of type double, and the perimeter, area properties, with calculation and returns the perimeter, area and features three sides of the other also has a boolean type attribute is used to determine whether the three numbers form a triangle.
Lander class type of the double bottom, under the bottom, height and area of property, has returned to the area function.
Circle class of type double the radius, circumference and area of property, has returned to the perimeter, area functions.
(2) preparation of a master class AreaAndLength test the above three categories.
(3) Accordi
To Search:
File list (Check if you may need any files):
AreaAndLength.doc
AreaAndLength.class
AreaAndLength.java