Product Site

5.1.1.6. defaultName

Returns a short human-readable string representation of the class. The string returned is of the form
The id class

where id is the identifier assigned to the class when it was created.
Example 5.1. Class class — defaultName method
say .array~defaultName     /* Displays "The Array class"   */
say .account~defaultName   /* Displays "The ACCOUNT class" */
say .savings~defaultName   /* Displays "The Savings class" */

::class account            /* Name is all upper case       */
::class "Savings"          /* String name is mixed case    */