Hey Guys, I need to understand what are constructors in C++? Well, I have know about this but I have no clue of its performance. So If anyone having any knowledge about this term than please let me know as soon as possible. Thanks in advance.
Hey Guys, I need to understand what are constructors in C++? Well, I have know about this but I have no clue of its performance. So If anyone having any knowledge about this term than please let me know as soon as possible. Thanks in advance.
When a object is made the difference of the objects must be initialized. Initialization of difference of object is obtained directly when the object is made .The object is initialized during production of it by means of a particular function. This particular function is known as constructor. It is called as constructor because it constructs the amount of data member of class.
Bookmarks