Create a class called QuadrilateralsTest that prints the details of a square and a rectangle. create an
Fantastic news! We've Found the answer you've been seeking!
Question:
Create a class called QuadrilateralsTest that prints the details of a square and a rectangle.
create an additional method in the Square and Rectangle classes, called getDetails(), which returns the same string that was printed in the printDetails() method. After creating it, make sure that the printDetails() method takes advantage of the getDetails() method so as not to duplicate the code.
Related Book For
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates
Posted Date: