Driver - System.out.println(rec1.getDemo System.out.println...

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

View Full Document Right Arrow Icon
/* A "driver" class to test the Averager class */ public class Driver { public static void main(String args[]) { Rectangle rec1 = new Rectangle(); //System.out.println(sq1.getLength()); System.out.println(rec1.getLength()); System.out.println(rec1.getWidth());
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: System.out.println(rec1.getDemo()); System.out.println(); Square sq1 = new Square(); System.out.println(sq1.getLength()); System.out.println(sq1.getWidth()); System.out.println(sq1.getDemo()); } }...
View Full Document

This note was uploaded on 11/30/2009 for the course COMP 110 taught by Professor Stotts during the Spring '08 term at UNC.

Ask a homework question - tutors are online