Chp7Drive - "\n\tcalc=" first.calc...

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

View Full Document Right Arrow Icon
/** * The Chp7Drive class <Driver * for classD and classB outputs * values for diefferent objs> * @author Jeff Cox */ * public class Chp7Drive { public static void main(String[] args) { ClassD first = new ClassD(); ClassD second = new ClassD(10, 13); ClassD third = new ClassD(5, 5, 4, 6); System.out.println("First object\n" + "\tm=" + first.getM() + "\n\tn=" + first.getN() + "\n\tq=" + first.getQ() + "\n\tr=" + first.getR()
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: + "\n\tcalc=" + first.calc()); System.out.println("Second object\n" + "\tm=" + second.getM() + "\n\tn=" + second.getN() + "\n\tq=" + second.getQ() + "\n\tr=" + second.getR() + "\n\tcalc=" + second.calc()); System.out.println("Third object\n" + "\tm=" + third.getM() + "\n\tn=" + third.getN() + "\n\tq=" + third.getQ() + "\n\tr=" + third.getR() + "\n\tcalc=" + third.calc()); " } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online