Java: Constructor- and Method-overloading exercise
Clash Royale CLAN TAG #URR8PPP .everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0; up vote 2 down vote favorite It's from a Java-course I'm enrolled into. The classes "Instructor" and "Book" are already provided. You got to write the different constructors of "Instructor" as well as the methods "getMostRecentBookTitle" and overloaded "updateBook". Here's are the final classes expanded with my additional code: // ------- Class Instructor ---------------------------------------- public class Instructor public long id; public String name; public String title; public String department; public Book books; public Instructor(long id, String name, String title, String department, Book books) this(id, name, title, department); this.books = books; public Instructor(long id, String name, String title, String department) this(id, name, title); this.department = department