generated from ohjelmointi2/gradle-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTicket.java
More file actions
18 lines (16 loc) · 715 Bytes
/
Ticket.java
File metadata and controls
18 lines (16 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package inheritance.webshop;
/**
* The Ticket class represents a concert or sports event ticket in a webshop.
* Like the Vehicle class, the Ticket class should inherit the Product class.
*
* In real life a ticket would likely have additional properties, such as the
* event date and time (LocalDateTime). In this exercise, you can decide
* yourself which properties you want to add. You can also decide yourself how
* the toString() method should look like.
*
* This class will not be autograded, so it is up to you to test it. You can
* also skip this class and continue with the next part of the exercise if you
* feel that you have understood the concept of inheritance.
*/
public class Ticket {
}