0

hi can anyone make me a new ordering system or check whether can this work code is in description

( using java object oriented programing technique) public class Order { //declaring variables private String name; private String phoneNumber; private String address; private String type; //constructor public PizzaOrder() { setName ("testname"); setPhoneNumber ("xxxx"); setaddress("testorder"); setType ("testtype"); } //setters public void setName(String name) { this.name = name; } public void setPhoneNumber(String phoneNumber) { this.phoneNumber = phoneNumber; } public void setaddress(String address) { this.address = address; } public void setType(String type) { this.type = type; } //getters public String getName() { return name; } public String getPhoneNumber() { return phoneNumber; } public String getaddress() { return address; } public String getType() { return Type; }

24th Aug 2021, 4:16 AM
Max
Max - avatar
4 Answers
0
Please define your "ordering system". What does it do? How should it work?
24th Aug 2021, 6:01 AM
你知道規則,我也是
你知道規則,我也是 - avatar
0
so my ordering system is to order cloths the way it works is where customer order types of cloth and write a delivery address so we can ship it out which that part is being done by my classmate and i am not sure what i am lacking for this system to run abit better
24th Aug 2021, 6:21 AM
Max
Max - avatar
0
The Order constructor is named incorrectly, PizzaOrder. The return Type should be return type in getType() There isn't an enclosing bracket in the class scope. I assume you didn't post the full code so an enclosing bracket missing.
24th Aug 2021, 6:35 AM
你知道規則,我也是
你知道規則,我也是 - avatar
0
thanks btw is not that i did not post the full code is just that idk what else to do i only know how to do it until here
24th Aug 2021, 7:26 AM
Max
Max - avatar