Class Person

Direct Known Subclasses:
Coach, Pitcher, PositionPlayer

public class Person extends Object
Person represents all common characteristics and behaviors for any person
on a baseball team. Position Players or Batters, Pitchers, and Coaches.

I decided to use a default value of a dash for each field. I may remove later
which could change default values to null
Feb 14, 2024
Larry Kedigh
  • Constructor Details

    • Person

      public Person(String playersName)
    • Person

      public Person(String playersName, char bats, char throwingHand)
  • Method Details

    • getName

      public String getName()
    • getBattingSide

      public char getBattingSide()
    • getThrowingArm

      public char getThrowingArm()
    • putName

      public void putName(String n)
    • putBattingSide

      public void putBattingSide(char b)
    • putThrowingArm

      public void putThrowingArm(char t)
    • toString

      public String toString()
      toString in class Object
    • batsName

      public String batsName()