Is constructor in C++ and init dunder in Python the same? If not then what’s the difference?
Diff bw init dunder and constructors
hey @shreoshiroy ,
yeah they are same , just the difference of terminology both have the same functioning.
whereas in python , you can also call it using class.__init__()
but in C++ you can’t .
I hope this helps.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.