Question: Photo addComments ( String newComment ) Appends the newComment parameter to the comments StringBuffer. int compareTo ( Photo photo ) This method will compare the
Photo
addCommentsStringnewComment
Appends the newComment parameter to the comments StringBuffer.
int
compareToPhotophoto
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
