0

Why Is It Printing Zero at getArea() .. Please help me šŸ¤¦šŸ»ā€ā™‚ļøšŸ¤¦šŸ»ā€ā™‚ļø

https://code.sololearn.com/cyITqandc2aq/?ref=app

10th Sep 2020, 3:21 PM
Gireesh Desineni
Gireesh Desineni - avatar
3 Answers
+ 2
Move the Rectangle(x,y) up to replace the Box() Box(double x,double y,double z):Rectangle(x,y) { height=z; }
10th Sep 2020, 3:46 PM
Heng Jun Xi
Heng Jun Xi - avatar
0
Im not sure but int to double directly may be the problem, so u need typecasting before assigning it.
10th Sep 2020, 3:33 PM
arturop200
arturop200 - avatar