Extend the LibraryCard class by adding the expiration date as a new property of a library card.
Fantastic news! We've Found the answer you've been seeking!
Question:
Extend the LibraryCard class by adding the expiration date as a new property of a library card. Define the following four methods:
//sets the expiration date
public void setExpDate ( GregorianCalendar date ) { ... }
//returns the expiration year
public int getExpYear ( ) { ... }
//returns the expiration month
public int getExpMonth ( ) { ... }
//returns the expiration day
public int getExpDay ( ) { ... }
Related Book For
Posted Date: