A few restrictions apply when creating new classes. Any subclass of a variable class, that is, a class like Array that has indexed instance variables, must also be a variable class. Similarly, any subclass of a variable byte class, that is, a class like String that has indexed instance variables that are bytes, must also be a variable byte class. Variable byte classes cannot have named instance variables, and any class with a named instance variable cannot have variable byte subclasses.Sometimes developers need to create classes that are not subclasses of an existing class. To support this, the special object nil, described in the previous section on CLDT, is extended so that it also understands the class creation messages.
|