ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
If an object is passed by address, will be constructor be called?
Correct Answer: A — No, values are copied
A copy of all the values is created. If the constructor is called, there will be a compile time error or memory shortage. This happens because each time a constructor is called, it try to call itself again and that goes infinite times.