Question: a. Make instance variables for Name, Weight, Wins, and Loses (pick appropriate variable types). b. Create a static variable for Total Fights c. Create a
a. Make instance variables for Name, Weight, Wins, and Loses (pick appropriate variable types). b. Create a static variable for Total Fights c. Create a default constructor that defaults name to "No Name yet", and all other variables to 0. d. Create a constructor that has parameters that set the value for name and weight, and sets wins and loses to 0. e. Create accessor methods for all the Variables (treat methods for variables appropriately). f Create a method that increments wins and TotalFights. g. a method that increments Loses and Totalfights. h. Create a void method that compares a fighter's wins to their loses and prints out whether or not they have a winning record (higher number of wins) or a losing record (higher number of losses). i. Create a Static method that compares 2 fighters. It will look at their win loss ratio and print "_____ is better fighters" where the blank is the name of that fighter. a. Make instance variables for Name, Weight, Wins, and Loses (pick appropriate variable types). b. Create a static variable for Total Fights c. Create a default constructor that defaults name to "No Name yet", and all other variables to 0. d. Create a constructor that has parameters that set the value for name and weight, and sets wins and loses to 0. e. Create accessor methods for all the Variables (treat methods for variables appropriately). f Create a method that increments wins and TotalFights. g. a method that increments Loses and Totalfights. h. Create a void method that compares a fighter's wins to their loses and prints out whether or not they have a winning record (higher number of wins) or a losing record (higher number of losses). i. Create a Static method that compares 2 fighters. It will look at their win loss ratio and print "_____ is better fighters" where the blank is the name of that fighter
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
