Question: undefined - III. (20 points) Write a python application that includes the following clases (1) (10 paints) Class Soccer which has: The following data attributes:
undefined
- III. (20 points) Write a python application that includes the following clases (1) (10 paints) Class Soccer which has: The following data attributes: teamName - noWins: represents the train's number of wins noLes represents the team's mumber of losses The follwing class attributes: totalTearns a variable that keeps track of the total munber of created teams (i.e, whenever a new team is created, this variable should increase by 1) Constructor that initializes the data attributes to the corresponding passed values A method incins() that increase the data attribute poWins by one. I A new goodRecords) that returns a boolean value and takes on argu: ments. This method returns true if wins > 20 and loose
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
