Like java Java.lang.Object
is the super-class for all the classes so in C++ is there any class
like Object
?
No, there is not. In C++ you pay for what you use, not more.
You can have void*
that can point to anything, or write your own base class if that makes sense.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With