0
Why Is It Printing Zero at getArea() .. Please help me 🤦🏻♂️🤦🏻♂️
3 ответов
+ 2
Move the Rectangle(x,y) up to replace the Box()
Box(double x,double y,double z):Rectangle(x,y)
{
height=z;
}
0
Im not sure but int to double directly may be the problem, so u need typecasting before assigning it.