Topic: APLX Help : Help on APL language : System Methods : ⎕CHILDREN Child classes
[ Previous | Next | Contents | Index | APL Home ]

www.microapl.co.uk

⎕CHILDREN Child classes


Implemented for Internal (user-defined)classes only

Syntax:

    classrefs ← classref.⎕CHILDREN

The niladic system method ⎕CHILDREN returns a vector of references to the children of a given class, i.e. the classes which inherit from that class. In this example, classes Color_Point and Grayscale_Point both inherit from class Point:

      )CLASSES 
Color_Point  Grayscale_Point  Point
      Point.⎕CHILDREN
{Color_Point} {Grayscale_Point}
      ⍴Point.⎕CHILDREN
2

Topic: APLX Help : Help on APL language : System Methods : ⎕CHILDREN Child classes
[ Previous | Next | Contents | Index | APL Home ]