Question: I'm supposed to write code where the code says ToDo import java.util.GregorianCalendar; /** * Write description of class VideoRecording here. * * @author (your name)
I'm supposed to write code where the code says ToDo
import java.util.GregorianCalendar;
/**
* Write description of class VideoRecording here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class VideoRecording implements MediaItem
{
// instance variables
/*# TODO: insert Code here */
/**
* Constructor for objects of class VideoRecording.
*/
public VideoRecording()
{
/*# TODO: insert Code here */
}
/**
* Returns the call number of the item.
*
* @returnthe call number.
*/
public String getCallNumber()
{
/*# TODO: insert Code here */
return null;
}
/**
* Sets the call number.
*
* @paramcallNo the call number for the item
*/
public void setCallNumber(String callNo)
{
/*# TODO: insert Code here */
}
/**
* Returns the copy number of the item.
*
* @returnthe copy number.
*/
public int getCopyNumber()
{
/*# TODO: insert Code here */
return 0;
}
/**
* Sets copy number of the item.
*
* @paramcopythe copy number.
*/
public void setCopyNumber(int copy)
{
/*# TODO: insert Code here */
}
/**
* Returns the title of the item.
*
* @returnthe title of the item.
*/
public String getTitle()
{
/*# TODO: insert Code here */
return null;
}
/**
* Sets the title of the item.
*
* @paramitemTitlethe title.
*/
public void setTitle(String itemTitle)
{
/*# TODO: insert Code here */
}
/**
* Returns the due date.
*
* @returnthe due date.
*/
public GregorianCalendar getDueDate()
{
/*# TODO: insert Code here */
return null;
}
/**
* Sets the due date.
*
* @paramdatethe due date.
*/
public void setDueDate(GregorianCalendar date)
{
/*# TODO: insert Code here */
}
/**
* Returns the id of the person who borrowed the item.
*
* @returnthe borrower id.
*/
public String getBorrower()
{
/*# TODO: insert Code here */
return null;
}
/**
* Set the borrower.
*
* @paramborrowerIdthe id of the borrower.
*/
public void setBorrower(String borrowerId)
{
/*# TODO: insert Code here */
}
/**
* Calculates the fees owed by the borrower if the item is overdue.
*
* @param currentDate the date to use for the calculation
* @return the amount of overdue fees.
*/
public Money calculateFees(GregorianCalendar currentDate)
{
/*# TODO: insert Code here */
return null;
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
