Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ShapesDriver {
- /**
- * @param args
- */
- public static void main(String[] args) {
- // Puts in a color, surface area, and volume
- sphere ball = new sphere("Green", 5.7, 6.9 ,5);
- System.out.print(ball);
- /*Cube cuboid = new Cube("Yellow", 5.7, 6.9, 8.5);
- System.out.print(cuboid);*/
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement