[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

  Comparing Classes

  Class objects can be used to check whether different objects belong to the
  same class. For example:

    IF obj1:class == obj2:class
       ? "obj1 and obj2 belong to the same class"
    ELSE
       ? "obj1 and obj2 do not belong to the same class"
    ENDIF

  This code uses the Class(y) predefined message class to obtain a
  reference to each object's class object, and compares the two references.

See Also: class Comparing Objects
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson