fork download
  1. public class MyClass {
  2. // Properties
  3. public Integer myNumber;
  4.  
  5. // Constructor
  6. public MyClass(Integer number) {
  7. this.myNumber = number;
  8. }
  9.  
  10. // Method
  11. public void myMethod() {
  12. System.debug('The number is: ' + myNumber);
  13. }
  14. }
Success #stdin #stdout #stderr 0.01s 8848KB
stdin
Standard input is empty
stdout
Object: UndefinedObject error: did not understand #MyClass
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject class(Object)>>doesNotUnderstand: #MyClass (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
stderr
./prog:2: parse error, expected '}'