Example : Points
public class Point {
private float x ;
public float y ;
public Point() { x = y = 0 ;}
public Point(float a , float b) { x = a ; y = b;}
}
. . . Point p1 = new Point();
. . . Point p2 = new Point(1.3,2.1);
Previous slide
Next slide
Back to first slide
View graphic version