xpp {
class XObj {
construct{
}
public:
int Arr[3] = {5,6,7};
void constructor() {
string Names[3] = {Jack,Jimmie,John};
int x;
for
(x = 0; x <= 2; x = x + 1) {
xout("\r\nIn constructor this.Arr[" + x + "]
= " + this.Arr[x]);
xout("\r\nIn constructor Names[" + x + "] =
" + Names[x]);
};
};
};
;
int a[3] = {10,20,30};
int x;
for (x = 0; x
<= 2; x = x + 1) {
xout("\r\na["
+ x + "] = " + a[x]);
};
node(XObj) MyObj;
for (x = 0; x
<= 2; x = x + 1) {
xout("\r\nMyObj.Arr["
+ x + "] = " + MyObj.Arr[x]);
};
}