develop #1

Open
HadiSharifi wants to merge 2 commits from develop into main
Showing only changes of commit 963153c0b3 - Show all commits
+5 -5
View File
@@ -6,8 +6,9 @@ public class Movie {
private int year;
public Movie(String title, double rating, int year) {
// TODO: Initialize the instance variables (this.title, this.rating, this.year)
// with the values passed as arguments to this constructor.
this.title = title;
this.rating = rating;
this.year = year;
}
public String getTitle() {
@@ -24,9 +25,8 @@ public class Movie {
@Override
public String toString() {
// TODO: Return a string representation of the movie matching the exact required format.
// Example format: "Movie: The Godfather, Rating: 9.2, Year: 1972"
return "";
String result = "Title: " + title + ", Rating: " + rating + ", Year: " + year;
return result;
}
@Override