fork download
  1. public class ABC {
  2. public String name;
  3. public void showName(){
  4. System.debug('Name is: ' + name);
  5. }
  6. }
  7.  
  8. ABC obj=new ABC();
  9. obj.name='Chetan';
  10. obj.showName();
  11.  
Success #stdin #stdout #stderr 0.01s 8996KB
stdin
Standard input is empty
stdout
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)
stderr
./prog:3: parse error, expected '}'