xpp {
/*
A sample program written by Kimmie using
text representation of Superx++ code.
*/
xout("Hello" +
"Man");
class XObject {
construct {
public:
<MyObjectNode>200</MyObjectNode>
}
}
class XPlant : XObject{
construct {
public:
<MyNode>10</MyNode>
protected:
<MyProt/>
}
public:
string sName = "Kimmie";
int iAge = 5;
int iArr[3] = {3, 4, 5};
int GetNum(int iVal) {
return this.iAge +
iVal;
};
void constructor() {
xout("\r\nIn
constructor plain");
};
void constructor(int i) {
this.iAge =
this.GetNum(iVal = i);
this.iAge = i;
xout("\r\nIn
constructor\r\ni = ");
xout(i);
};
int GetAge(int *iID, int x) {
return this.iAge;
};
int iVar;
string sVar = "Sahondra";
}
/* The MySimpleNode object is an object
based on two different classes */
node(XPlant, XObject) MySimpleNode(i =
MySimpleNode.GetNum(iVal = 78)) {
<cats>5</cats>
};
}