/* * @topic T00635 Baseball demo application * @brief concrete class Catcher */ package baseball; public class Catcher extends BaseballPlayer { // data attributes private int attemptedSteals; private int stolenBases; // Constructor method public Catcher( int playerNumber, String playerName, int numberAtBats, int numberHits, int attemptedSteals, int stolenBases ) { super( playerNumber, playerName, numberAtBats, numberHits ); this.attemptedSteals = attemptedSteals; this.stolenBases = stolenBases; } public int stolenBaseAverage() { return ( 100 * stolenBases / attemptedSteals ); }//stolenBaseAverage public int rankPlayer() { return stolenBaseAverage(); }//rankPlayer }//class Catcher