72472 CD Class - Java class

IN PROGRESS
Bids
1
Avg Bid (USD)
$25
Project Budget (USD)
N/A

Project Description:
I need the following: (VERY URGENT FROM A IMPORTANT CLIENT)

Write a CD class. (New File/java class) The Fields will be Strings: title, artist, and loandedTo. There will be eight methods - a constructor taking parameters for title and artist, a toString method which will return a descriptive phrase about the CD such as "Abby Road by the Beatles". If the CD is on loan, toString will return "Abby Road by the Beatles on loan to Joe Brigante".

public string toString ( )
{
return title + .....

There will be methods to get and set each of the fields.

public void setTitle(String t)
{
myTitle= t
}

public String getTitle ()
{
return myTitle
}


Write a TestCD class. This should be a SimpleApp. In the constructor, call a start method. In the start method, create a 3 CDs. Print their descriptive phrases to the console. (Hint: System.out.printIn will look for a toString method if you tell it to print an object.). Change the title on one of the CDs. Lend a CD to someone. Print the descriptive phrases again.

Show me, print out code and Terminal, hand in.

Skills required:
Anything Goes, Java
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.