Advertisement

Predefined Type Declarations

Chapter
Part of the Lecture Notes in Computer Science book series (LNCS, volume 2262)

Abstract

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].

Copyright information

© Springer-Verlag Berlin Heidelberg 2002

Personalised recommendations