Question: Photo addComments ( String newComment ) Appends the newComment parameter to the comments StringBuffer. int compareTo ( Photo photo ) This method will compare the

Photo
addComments(StringnewComment)
Appends the newComment parameter to the comments StringBuffer.
int
compareTo(Photophoto)
This method will compare the date of the current object against the parameter's object.
String
getComments()
Returns a string that corresponds to the comments.
String
getDate()
Get method for date.
int
getHeight()
Get method for height.
String
getPhotoSource()
Get method for photoSource.
int
getWidth()
Get method for width.
String
toString()
Returns a string with photoSource, width, height and date values separated by commas.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!