Program - Python Make a class. It should be something really offbeat and zany. The most important thing is to write a simple class, create TWO different instances, and then be able to do something. For example, create a pizza instance for Suzie, ask
Program - Python
Make a class. It should be something really offbeat and zany. The most important thing is to write a simple class, create TWO different instances, and then be able to do something. For example, create a pizza instance for Suzie, ask her for the toppings from the choices, and store her pizza order. Then create a second pizza instance for Larry, ask for his toppings and store his pizza order. Then print both of their orders back out. You do not need to make your class very complicated.
-Make sure your class has a constructor that will set some initial properties.
-Have one constructor and then make one other setter method to re-seed initial values to something different if desired.
-Make sure your class has two functions that do something.
-Make sure you class has one or two variables/attributes.
-Make sure your class has a simple data structure like a list or tuple or set or dictionary.
Step by step
Solved in 3 steps with 2 images