// Script function: Demo of class with a constructor.

// 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 GlobalSino : object
{   
string MyName
object InitObject(object MySelf, string MyNameIsYLiao)  

{       
MyName = MyNameIsYLiao   
return MySelf   
} 

number GetIWant( object MySelf ) 
{
return 1967
} 

GlobalSino( object MySelf )  
{ 
result( MyName + "That I want is " + MySelf.GetIWant() + "\n")   
}
}
object GlobalSino = alloc(GlobalSino)
result( GlobalSino.ClassName( ) + "\n" )
result( GlobalSino.ParentClassName( ) + "\n\n" )
