//******************************************************************** // Book.java Author: Lewis/Loftus // // Represents a book. Used as the parent of a derived class to // demonstrate inheritance. //******************************************************************** public class Book { protected int pages = 1500; //---------------------------------------------------------------- // Prints a message about the pages of this book. //---------------------------------------------------------------- public void pageMessage () { System.out.println ("Number of pages: " + pages); } }