nb
Mon, 09/20/2010 - 00:25
class hrt{
double width;
double height;
double depth;
hrt()
{
width=10;
height=10;
depth=10;
}
}
class hrtdemo{
public void main(String args[]){
hrt myhrt=new hrt();
double volum;
volum=myhrt.width*myhrt.height*myhrt.depth;
System.out.println("the volume is "+volum);
}
}
Are you having an issue with this code?
Developer - Compilr.com