BookClub - rm[1] = new Book ("Great Eskimo Vocabulary...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // BookClub.java Authors: Lewis and Loftus // // Solution to Programming Project 7.3 //******************************************************************** public class BookClub { //----------------------------------------------------------------- // Creates several objects from classes derived from the // ReadingMatter class. //----------------------------------------------------------------- public static void main (String[] args) { ReadingMatter[] rm = new ReadingMatter[5]; rm[0] = new ReadingMatter ("Myst Strategy", "0-7615-0807-4");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: rm[1] = new Book ("Great Eskimo Vocabulary Hoax, The", "0-226-68534-9", "Pullum, Geoffrey"); rm[2] = new TextBook ("Java Software Solutions", "0-201-61271-2", "Lewis, John and William Loftus", true); String names = { "Hazel", "Fiver", "Bigwig", "Blackberry", "Dandelion" }; rm[3] = new Novel ("Watership Down", "0-380-00293-0", "Adams, Richard", names); rm[4] = new Magazine ("ACM Crossroads", "0-234-5678-0", "Perry, Lynellen and others"); for (int index = 0; index < rm.length; index++) { rm[index].content(); System.out.println(); } } }...
View Full Document

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Ask a homework question - tutors are online