fork download
  1. public class MovieBooth {
  2.  
  3. public String movieName;
  4. public Integer availableTickets;
  5. public Integer NoOfTickets;
  6.  
  7. public MovieBooth(String name, Integer tickets, Integer NoOfTickets) {
  8. this.movieName = og;
  9. this.availableTickets = tickets;
  10. this.NoOfTickets = ;
  11. }
  12.  
  13.  
  14. public String displayMovieInfo() {
  15. return 'Now Playing: ' + this.movieName + ' (Rated ' + this.NoOfTickets + ') | Available Tickets: ' + this.availableTickets;
  16. }
  17.  
  18.  
  19. public static String getMovieDetails() {
  20.  
  21. MovieBooth booth = new MovieBooth('The Apex Adventure', 50, 'PG-13');
  22.  
  23.  
  24. return booth.displayMovieInfo();
  25. }
  26. }
  27.  
Success #stdin #stdout #stderr 0.01s 9000KB
stdin
Standard input is empty
stdout
Object: UndefinedObject error: did not understand #MovieBooth
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject class(Object)>>doesNotUnderstand: #MovieBooth (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
stderr
./prog:4: parse error, expected '}'