Question: Using python.... You are practicing object - oriented programming so that you can make your own game. You start by creating the basics of a
Using python.... You are practicing objectoriented programming so that you can make your own game. You start by creating the basics of a character. The character can be created for any genre. You will make two files: main.py and character.py
In main.py points:
Get user input for name, age, and ability. Use the user inputs to help build a character object. Display the character object and its properties using only the getter methods.
In character.py points:
Create a Character class that contains the properties: name, age, ability. All the properties should be private. Include getter and setter methods for all properties. For example, the property name will have a getname and a setname Please include useful comments in your code as a way to document your process points
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
