Question: Program - JGRASP Write a constructor for the class BaseballPlayer. The variables are listed below. The constructor should take in all four data items as

Program - JGRASP
Write a constructor for the class BaseballPlayer. The variables are listed below. The constructor should take in all four data items as parameters in the order shown and set their corresponding variables to these parameters. If the parameters representing homeruns and battingAverage are negative, the class variables should be set to zero. wwwwwwwwwwwwwa private String name ; private String team ; private int home Runs; private double battingAverage waaaaaaaaaaaaaan
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
