Write a Book class storing a title and a page count. The constructor takes both. getTitle returns the title, and getPages returns the page count.
class Book { Book(String title, int pages); String getTitle(); int getPages(); }
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.