Saved Bookmarks
| 1. |
Write one reason which defines the need to use a constructor. |
|
Answer» The constructors are used to initialize the object automatically when an object is created. This reduces a separate function call to a member function used for such purpose. It is called constructor because it constructs the values of data members of the class. |
|