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

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

Ask a homework question - tutors are online