Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSCI 1301 B Homework #8 Due November 5, 2018 (Monday), 9:05am Design a class Order following the given UML diagram UML for class Order: ON

image text in transcribed
image text in transcribed
CSCI 1301 B Homework #8 Due November 5, 2018 (Monday), 9:05am Design a class Order following the given UML diagram UML for class "Order": ON ORDER: int Description declared as public static final, a constant with value 0 declared as public static final, a constant with value 1 declared as public static final, a constant with value2 declared as private static, initialized to 0, represent the total number of orders private private, Date class is defined in the java.util package private, use ON_ORDER, CANCELED, SHIPPED constants to represent statuses private private -totalOrder: int -orderName: String -date: Date -status: int -shipping Address: String phoneNumber: String -billingAddress: String +Order(Name: String) totalOrder+ vate orderName Name status ON ORDER date- new Date) set the cancel date by date CANCELED +cancel(): void +ship(): void +getDate): Date new Date(), status is set to set the shipping date by date-new Date(), status is set to SHIPPED return the date (it might be the order date, or shipping or cancel date on the status +setShippingAddress (a: String); void shippingAddress - a tsetPhoneNumber(p: String): voidphoneNumber-p +setBillingAddress(add: String): void billingAddress-add return totalOrder return orderName return date return status return shippingAddress return phoneNumber int +getOrderName: String getDateO: Date tgetStatus: int tgetShippingAddress: String getPhoneNumber): String Strin +toString0: String return the information of orderName, date, status, shippingAddress, billingAddress, and phone Number as a String

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

Demonstrate how to use the Gaps Model for diagnosing and

Answered: 1 week ago

Question

What is the Definition for Third Normal Form?

Answered: 1 week ago

Question

Provide two examples of a One-To-Many relationship.

Answered: 1 week ago