Assume you have the following class structure:
![](/download/attachments/264474360/class_customer.png?version=1&modificationDate=1658318273000&api=v2)
A type Customer derives from a type Person and adds an additional attribute.
Now assume further you have an object of each class (aPerson
and aCustomer
) and the following action script:
typeOfaPerson
will be Customer :
set typeOfaPerson = aPerson.typeOf();
staticTypeOfaPerson
will be Person , which is the type the object had originally been created with: