Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Main {
- public static void main(String[] args) {
- DeliveryPerson deliveryPerson = new DeliveryPerson("Vlado", 4);
- System.out.println(deliveryPerson);
- deliveryPerson.deliverOrder(false);
- System.out.println();
- Order order = new Order("60793930613", 100);
- order.displayInfo();
- System.out.println("The new price after the discount is: " + order.applyDiscount(50));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement