public class ABC { public String name; public void showName(){ System.debug('Name is: ' + name); } } ABC obj=new ABC(); obj.name='Chetan'; obj.showName();
Standard input is empty
Object: UndefinedObject error: did not understand #ABC MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254) UndefinedObject class(Object)>>doesNotUnderstand: #ABC (SysExcept.st:1448) UndefinedObject>>executeStatements (prog:1)
./prog:3: parse error, expected '}'