What is the role of the "new" operator in the creation of an object ?
Ans: When u use the "new" operator for creating the object of the class it will internally perform the following:
-Reads the Classes
-Calls the Constructors
-Allocates the memory required for the object
-What is meant by reading the class ?
Ans: Reading the class in the sense it will recongnize each and every member which was defined under the class.
No comments:
Post a Comment
Thank you for visiting my blog