A baseball class stores the number of hit, the number of at bats, and the players name. The class should have appropriate
variables, multi-argument constructor and the following methods:
printBattingAverage() that prints the players batting average ( # of hits/ # of at bats)
toString() that returns a sentence describing the players statistics
Make a tester class. Make an object of the baseball class, you can make up your own literals for the info. Then call both
methods.
(In Java)