summaryrefslogtreecommitdiff
path: root/tutorial/examples/capsule/Point.oj
blob: a74f566e7289d407391f7ef590a059ebfea069ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Point.oj
 */
package examples.capsule;


public class Point instantiates CapsuleClass
{
    public int x, y;
    protected String name;

    public Point( String name, int x, int y ) {
    this.x = x;
    this.y = y;
    this.name = name;
    }

    public Point( int x, int y ) {
    this( "DefaultName", x, y );
    }

}