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 object-oriented 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 (10 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 (10 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 get_name() and a set_name(). Please include useful comments in your code as a way to document your process (5 points).

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