Predefined Type Declarations
Each Mojave program contains three predefined type declarations: Like in Java, Object is the root of the class hierarchy. Interface is used as a default if a class does not implement any other interface. Operator contains a set of static methods for the usual unary and binary operations. Since these methods cannot be implemented in Mojave, they are marked as native to indicate that their behavior is predefined. For brevity, we present only the methods that are needed in this book. The full set of operator methods (in particular, methods for arithmetic operations) can be found in [MMPH97].