(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