- 1

why not working

https://www.sololearn.com/compiler-playground/chxA5X3AGz4T in this code i wanted to write something diffrent. Why it didn't work? And also what's that .o thing

17th Dec 2022, 3:52 PM
Lalala
Lalala - avatar
2 Answers
+ 1
That code works as expected. You have to give 2 inputs like(5 4) then the output will be 20 that `o` thing is called class name it can be whatever you want you can even change that TV o(x,y); o.area(); TO TV myTv(x, y); myTv.area();
17th Dec 2022, 8:13 PM
Kishor Ramanan
Kishor Ramanan - avatar
0
the link does not work :(
17th Dec 2022, 7:43 PM
Артур Đ„Ń€ĐŸĐŒĐŸĐČ