Question: Create a class Restaurant with the following attributes: restaurant_ld, name, address, where the restaurant_ld is a unique identifier of type 'int', name is of

Create a class Restaurant with the following attributes: restaurant_ld, name, address, where 

Create a class Restaurant with the following attributes: restaurant_ld, name, address, where the restaurant_ld is a unique identifier of type 'int', name is of type 'str' and address is of type Address class. The Address class has three attributes as follows: number (int), roadname (str), and townname (str). Create two Restaurant objects and implement the appropriate accessor and mutator methods for the name, and address. Implement a method to read each restaurant's data from the keyboard and prints them on the screen when calling the respective repr 0 method.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

PYTHO... View full answer

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 Programming Questions!