[SOLVED] Python lab
I need an explanation for this Python question to help me study.
You will create a custom class called Burger that will have the following properties: Customer name, order No., burger type, quantity ordered and price. You will implement get() and set() methods for these along with a constructor.
1. Create a new Python file and class called Burger.
2. Implement an appropriate constructor, getter methods and setter methods.
3. Price is computed based on the type of burger ordered and then multipled by the quantity ordered. There is no sales tax. Burger types and prices are in the table below. There is room to be creative if you want to use some favorites of your own.
4. Implement a public method called toString() that will return a string containing customer name, order No., type, qty, and total price.