Question: Create Python class called Store that has attributes name and profit. Write a constructor for your class. Write a method to change the two attributes
Create Python class called Store that has attributes name and profit. Write a constructor for your class. Write a method to change the two attributes and to print the two attributes. Show how you would instantiate a Store object and use your change and print methods.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
