class box
1.
{
3.
int width:
1.
5.
int height;
int length;
int volume;
3.
1.
3.
box)
{
width = 5;
2.
).
5;
.
6;
height
length
}
void volume
2.
3.
1.
{
5.
volume = width*height*length;
5.
}
1.
3.
}
class constructor_output
{
).
public static void main(String args[])
{
1.
box obj
= new box (:
obj.volume();
System.out.println(obj.volume);
1.
}
}
a) 100
b) 150
c) 200
d) 250
Answers
Answered by
2
Answer:
b. 150
Explanation:
pls mark as brainlist me
Similar questions