+ 1
Can anyone please explain me the difference between New operator and Constructor ?
4 ответов
+ 14
Np 🤗🤗
+ 13
New operator is used to dynamically allocate memory within our program.
Constructor is used to initialize data members of the class.It get invoke when an object of the class is created.
👍🏻👍🏻👍🏻
+ 2
Thank you very much for the explaination.