diff options
Diffstat (limited to 'tutorial/examples/print/MyClass.oj')
-rw-r--r-- | tutorial/examples/print/MyClass.oj | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tutorial/examples/print/MyClass.oj b/tutorial/examples/print/MyClass.oj new file mode 100644 index 0000000..0b689ea --- /dev/null +++ b/tutorial/examples/print/MyClass.oj @@ -0,0 +1,21 @@ +package examples.print;
+
+
+import openjava.mop.*;
+import openjava.ptree.*;
+
+
+public class MyClass instantiates TestPrinter extends OJClass
+{
+ public MyClass( Environment outer_env, OJClass declarer,
+ ClassDeclaration ptree ) {
+ super( outer_env, declarer, ptree );
+ }
+
+ public MyClass( Class javaclass, MetaInfo minfo ) {
+ super( javaclass, minfo );
+ }
+
+ protected void pro() {}
+ public void pub() {}
+}
|