Question: Question Completion Status: Question 14 Make a class called Restaurant. 13 points Save and 1. The _init_method for Restaurant should store two attributes: a restaurant_name

 Question Completion Status: Question 14 Make a class called Restaurant. 13

Question Completion Status: Question 14 Make a class called Restaurant. 13 points Save and 1. The _init_method for Restaurant should store two attributes: a restaurant_name and a cuisine_type. Make the attributes provate. The init method should allow the creation of an instance providing values for the attributes 2. Make method called describe_restaurant that prints these two pieces of information, 3. Make a method called open_restaurant that prints a message indicating that the restaurant is open. 4. Make a method called set_name that will set the name of the restaurand to a give value 5. Make a method called get_name that will return the name of the restaurand 6. Make an instance called myrestaurant from your class and provide initial values of your choice. 7. Use the merhod describe_restaurant to print the attributes 8. Use the method open_restaurant to print that the restaurant is open 9. Use the method set_name to change the name of the restaurand 10. Use the method get_name to print the name of the restaurand For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). A T > % CO B I U s Paragraph Arial FR HE X A SEX TO Per 1992 e > TT + X2 X3 14px O WORDS PO P

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!