xpp {

       /* Define the class XObj */

       class XObj {

              public:

                     int    iVal = 500;

                     void   constructor(int aiNum) {

                           xout("\r\nIn constructor aiNum = " + aiNum);

                     };

       };

      

       /* Instantiate x as an instance of XObj with some attributes */

       node(XObj)    x(aiNum = 34) nocode MyAttr="cat";

      

       /* Write the value of the MyAttr attribute of x */

       xout("\r\nThe MyAttr of x = " + $x.MyAttr);

      

       /* this call to .class shows reflection in Superx++ */

       /* It tells us the class of the x instance */

       xout("\r\nThe class of x = " + $x.class);

}