| Descendants[class] lists all direct subclasses of class. |
| Descendants[class, All] includes all hierarchy levels below class. |
This loads the package.
The next example defines a simple class.
Because it automatically inherits from Object by means of $DefaultClass, it is listed in the subclasses of Object.
Let us define another class child that inherits from base and a third, grandchild, derived from it.
Now, base has a child.
The list contains only the classes directly below in the inheritance. Therefore, the lists of Object is not affected and grandchild's list is empty. We can include further levels within the hierarchy.
Taking the class all classes inherit from we get a complete list of defined classes.
|