APLX Help : Help on APL language : System Commands : )REPARENT Reparent class
|
|
![]() |
|
The first argument is the name of the class which you want to re-parent. The second is the name of the class which will be the new parent. Other than the restriction that the new parent class must not be descended from the class you are modifying, there is nothing to prevent you from re-parenting a class arbitrarily. However, the main use for )CLASSES Car MotorVehicle Vehicle ⎕CLASS Car {Car} {Vehicle} ⎕CLASS MotorVehicle {MotorVehicle} {Vehicle} )REPARENT Car MotorVehicle ⎕CLASS Car {Car} {MotorVehicle} {Vehicle} Any existing instances of the class will be unaffected except that any properties which are not valid in the new version of the class (because they were inherited from the old parent but are not inherited from the new parent) will be lost. You can also re-parent a class using the |
|
APLX Help : Help on APL language : System Commands : )REPARENT Reparent class
|
Copyright © 1996-2010 MicroAPL Ltd