12 lines
334 B
Java
12 lines
334 B
Java
public class Review {
|
|
private int rating = -1;
|
|
private String comment = "NoComment";
|
|
|
|
public void setRatingAndComment(int revRating, String revComment) {
|
|
this.rating = revRating;
|
|
comment = revComment;
|
|
}
|
|
public int getRating() { return rating; }
|
|
public String getComment() { return comment; }
|
|
}
|