This preview shows page 1. Sign up to view the full content.
Unformatted text preview: open seats (ie no one’s sitting in them) on the bus. Assume that each passenger occupies one seat. 2. Write a Java application (another class) that has a main method which • declares and creates a Bus object with 40 seats • adds 12 passengers to that Bus object • prints out the number oF remaining empty seats via the getNumEmptySeats method call...
View Full Document
This note was uploaded on 08/08/2008 for the course CS 302 taught by Professor Willbenton during the Spring '07 term at University of Wisconsin Colleges Online.
- Spring '07