Post: Need help with java
02-24-2011, 04:57 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Ok this is for my class. So I have to create a class and a driver. Not to bad since I can do it, but I got stuck i have to use a method to get area and volume and can't use getter's and setter's to do it. I know it's really easy but can't seem to think on how to get it to work.

The class is called Box
I have height, width, and depth

i know area is W*H and volume is W*H*D

my problem is how do i write it so that i get area and volume with having to use getters and setters
(adsbygoogle = window.adsbygoogle || []).push({});

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo