blob: 3ab9edc32af13c98339ba6562fba1b53fa607a61 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*
* PointUser.oj
*/
package examples.rtrefl;
public class PointUser
{
public static void main( String[] args ) {
Point p = new Point( 1, 2 );
p.mt = new VerboseRTMetaObject( p );
p.name = "MyFavorite";
int x = p.x + 1;
p.y = x * 2 + p.y;
System.out.println( "distance = " + p.distanceFromOrigin() );
}
}
|