Class PersonBoundCard

  • Direct Known Subclasses:
    AccountCard, PrepaidCard, UserCard

    public abstract class PersonBoundCard
    extends Card
    A card that is bound to a person's identity.
    Author:
    Thomas Morgner.
    • Constructor Detail

      • PersonBoundCard

        public PersonBoundCard​(String firstName,
                               String lastName,
                               String cardNr)
        Creates a new card.
        Parameters:
        firstName - the first name.
        lastName - the last name.
        cardNr - the card number.
    • Method Detail

      • getFirstName

        public String getFirstName()
        Returns the first name.
        Returns:
        The first name.
      • getLastName

        public String getLastName()
        Returns the last name.
        Returns:
        The last name.
      • getCardNr

        public String getCardNr()
        Returns the card number.
        Returns:
        The card number.