Skip to content
Snippets Groups Projects
Commit c542a0de authored by tmnaqeesha's avatar tmnaqeesha
Browse files

fix: update class film

parent 80018c00
No related branches found
No related tags found
2 merge requests!17Clean code before crossed test,!16Fix for cross test
......@@ -26,7 +26,8 @@ public class Film extends Item {
@Override
public String toString() {
return "Film Title: " + title + "\nKind: " + kind + "\nDirector: " + director +
"\nScenarist: " + scenarist + "\nDuration: " + duration + " minutes";
return "Film Title: " + getTitle() + "\nKind: " + getKind() + "\nDirector: " + getDirector() +
"\nScenarist: " + getScenarist() + "\nDuration: " + getDuration() + " minutes";
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment