Question
C++ Boxers can be either Professional or Amateur. Both amateur and professional boxers have a name and a record of wins and losses. Professional boxers
C++
Boxers can be either Professional or Amateur. Both amateur and professional boxers have a name and a record of wins and losses. Professional boxers are licensed by an athletic commission. Amateur boxers compete in an amateur Golden Gloves organization.You are to implement the Boxer class. Its constructor should accept the boxers name, the number of wins the boxer has, and the number of losses the boxer has. You should implement the printName and printRecord functions for the boxer class. You are then to implement a ProfessionalBoxer class and derive it from the Boxer class. In addition to name, wins, and losses, the ProfessionalBoxer should accept a string that represents the athletic commission the boxer is sponsored by.You are then to implement a AmateurlBoxer class and derive it from the Boxer class. In addition to name, wins, and losses, the AmateurBoxer should accept a string that represents the Golden Gloves organization that the boxer competes in.
Your main function should appear as follows:
int main(){
ProfessionalBoxer pb("Clubber Lang", "Nevada State Athletic Commission", 32, 2);
pb.printName();
pb.printRecord();
pb.printLicence();
AmateurBoxer ab("Billy Bass","New York Golden Gloves", 2, 4);
ab.printName();
ab.printRecord();
ab.printGoldenGlovesAssociation();
return 0;
}
Your output should look like the following:
This boxer's name is: Clubber Lang
This boxer has 32 wins and 2 losses.
This boxer is licensed by Nevada State Athletic Commission
This boxer's name is: Billy Bass
This boxer has 2 wins and 4 losses.
This boxer belongs to New York Golden Gloves
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started