summaryrefslogtreecommitdiff
path: root/tutorial/examples/capsule/Point.oj
diff options
context:
space:
mode:
Diffstat (limited to 'tutorial/examples/capsule/Point.oj')
-rw-r--r--tutorial/examples/capsule/Point.oj22
1 files changed, 22 insertions, 0 deletions
diff --git a/tutorial/examples/capsule/Point.oj b/tutorial/examples/capsule/Point.oj
new file mode 100644
index 0000000..a74f566
--- /dev/null
+++ b/tutorial/examples/capsule/Point.oj
@@ -0,0 +1,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 );
+ }
+
+}