Monday, July 5, 2010

Whats That Song They Use

# 4 # 3

PARTS FOR TASKS ARE IN BOLD RENTAL AND CLASS IIIB IVB
III B:
the definitions of classes and methods.
Cerchio2D Define the class with instance variables radius and center, respectively, of type double and Point2D.Double.
Both can not be modified after object creation.
Provide the class with a constructor that uses as parameters the center and radius,
Equip unitCenter class method that returns the circle with center at the origin and unit radius.
Create a circle of Cerchio2D class and set the center at the point of coordinates (1.0) give the radius and the value 2.0. Print
then the radius of the unit circle with center at the origin.

Cerchio2D Change the class defining the method toString () which returns a string that contains the following information: name of the class / coordinates of the center and center / radius and radius.

(Ma)
IV A: Exercise 6

Class Management (Bia, Mon, Nig)
IV B:
transfer information from one file to another.
Write to file "numeriGrandi.fobj" numbers that exceed 500 on the file "numeriCasuali.fobj.
(Bar, Lod, Riz, Vir)

0 comments:

Post a Comment