Players - public static void main (String args) {...

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

View Full Document Right Arrow Icon
//******************************************************************** // Players.java Author: Lewis and Loftus // // Solution to Programming Project 7.4 //******************************************************************** public class Players { //----------------------------------------------------------------- // Exercises the sport statistic classes. //-----------------------------------------------------------------
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: public static void main (String args) { BaseballStats player1; FootballStats player2; player1 = new BaseballStats ("Sal Runner", "Phillies"); player2 = new FootballStats ("Mel Rogers", "Redskins"); player1.score(); player2.score(); player1.getHit(); player2.gainYards(15); System.out.println (player1); System.out.println (); System.out.println (player2); } }...
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