Class FreeCard


  • public class FreeCard
    extends Card
    A card.
    Author:
    Thomas Morgner.
    • Constructor Detail

      • FreeCard

        public FreeCard​(String cardNr,
                        Date expires)
        Creates a new 'free' card.
        Parameters:
        cardNr - the card number.
        expires - the expiry date.
    • Method Detail

      • getExpires

        public Date getExpires()
        Returns the expiry date.
        Returns:
        The expiry date.
      • getCardNr

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

        public CardType getType()
        Returns the card type.
        Specified by:
        getType in class Card
        Returns:
        The card type.