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
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 ( ) { ... }
Step by Step Solution
3.37 Rating (147 Votes )
There are 3 Steps involved in it
To extend the LibraryCard class by adding an expiration date property and defining the four methods ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
60618495ad4af_55487.pdf
180 KBs PDF File
60618495ad4af_55487.docx
120 KBs Word File
