Advertisement
QuinnComstock

Driver

Mar 5th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1.  
  2. /**
  3. * Driver
  4. *
  5. * This is the program driver for the Tickets
  6. *
  7. * @author Quinn Comstock
  8. * @version March 5th 2015
  9. */
  10. public class Driver
  11. {
  12. public static void main (String[] args)
  13. {
  14. Walkup walk = new Walkup( 5 );
  15. System.out.println(walk.toString());
  16. System.out.println();
  17.  
  18. Advance adva1 = new Advance( 1, 12 );
  19. System.out.println(adva1.ToString());
  20. System.out.println();
  21.  
  22. Advance adva2 = new Advance( 3, 8 );
  23. System.out.println(adva2.ToString());
  24. System.out.println();
  25.  
  26. StudentAdvance stud1 = new StudentAdvance ( 4, 3);
  27. System.out.println(stud1.toString());
  28. System.out.println();
  29.  
  30. StudentAdvance stud2 = new StudentAdvance ( 2, 15);
  31. System.out.println(stud2.toString());
  32. System.out.println();
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement