Advertisement
KechevD

Lesson 23 Inheritage_GroupTicket

May 18th, 2020
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public class GroupTicket extends Ticket {
  2.  
  3. public GroupTicket(String performance, double price, int people) {
  4. super(performance, price, people);
  5. }
  6.  
  7. @Override
  8. public String toString() {
  9. return "GroupTicket [performance=" + performance + ", price=" + price + ", people=" + people + "]";
  10. }
  11.  
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement