
// Script function: Demo of CLASS.

// Unless named starting with GlobalSino, EM, My, Self, the function commands are defined 
//by Gatan DM, please see at link: http://www.globalsino.com/EM/page2597.html



class myclass: object
{
number a, b;
void setab(object myclass, number i, number j) 
{
a = i 
b = j 
result ((a+b) + "\n")
}
}

number main()
{
object myclass=alloc(myclass)
myclass.setab(10, 20);
myclass.setab(0, 0);
result ("\n")
}

main()