April 2019
Intermediate to advanced
360 pages
9h 17m
English
The MVCArchitecturalPattern class contains the main() method to drive the program. This class also contains the pullBookDetails() method that gets details from the Book object instance:
public class MVCArchitecturalPattern { public static void main(String[] args) { Book model = pullBookDetails(); BookView view = new BookView(); BookController con = new BookController(model, view); con.updateView(); con.setBookTitle("Mastering Java 11"); con.setBookISBN("978-1789137613"); con.setBookYear(2018); con.updateView(); } private static Book pullBookDetails() { Book book = new Book(); book.setTitle("Mastering Java 9"); book.setISBN("978-1786468734"); book.setYear(2017); return book; }}
There are two sets of output, ...
Read now
Unlock full access