Jeremy B.

asked • 11/11/16

need help solving this python coding:

keep getting this code incorrect:

Write the definition of a class ContestResult containing:
An instance variable winner of type String, initialized to the empty String.
An instance variable second_place of type String, initialized to the empty String.
An instance variable third_place of type String, initialized to the empty String.
A method called set_winner that has one parameter, whose value it assigns to the instance variable winner.
A method called set_second_place that has one parameter, whose value it assigns to the instance variable second_place.
A method called set_third_place that has one parameter, whose value it assigns to the instance variable third_place.
A method called get_winner that has no parameters and that returns the value of the instance variable winner.
A method called get_second_place that has no parameters and that returns the value of the instance variable second_place.
A method called get_third_place that has no parameters and that returns the value of the instance variable third_place.
No constructor need be defined.

1 Expert Answer

By:

James G. answered • 07/26/17

Tutor
4.9 (1,012)

Tutor

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.