public void toString (Bacon, Cheese, Egg, Prawn, bCost, eCost,pCost){
}
When i do this i get void is an invalid type for the variable toString. But, when i try without i still receive errors....
Type: Posts; User: maths94
public void toString (Bacon, Cheese, Egg, Prawn, bCost, eCost,pCost){
}
When i do this i get void is an invalid type for the variable toString. But, when i try without i still receive errors....
Don't really understand what you mean. However, i've putten
CrustType thin = new CrustType("thin", thinCost);
CrustType deepDish = new CrustType("DeepDish", deepCost);
...
I had attached a weblink that shows the output.
Dominos Pizza
Enter your first name: js
Please, enter your delivery address: s
What is your preference of crust?
CrustType@41171d93...
Hey guys,
I currently have the following code(look below). When program is ran no errors occur, however the output isn't correct, and i've spent the past few hours trying to figure out but can't....