PIZZA HUT Assignment Part 2
PIZZA HUT Assignment Part 2
Create a class Reception having main method and perform following functionality
in it
Accept values from user to create an order object with appropriate values
Reply to the user request by calling delivery() method i.e. whether order is
deliveriable or not.
Solution:
let's break down the steps to create the requested Java classes and interface.
1. Create the Interface Deliverable:
// File: com/pune/pizzahut/Deliverable.java
package com.pune.pizzahut;
import java.util.Date;
import java.util.Date;
import java.util.Scanner;
public class Reception {
public static void main(String[] args) {
// Accept values from the user to create an Order object
Scanner scanner = new Scanner(System.in);
System.out.print("Enter Order No: ");
int orderNo = scanner.nextInt();