View Single Post
Old 09-01-2016, 12:09 AM   #3
Claire_Anderson
Registered User
 
Join Date: Aug 2016
Posts: 40
Having more than one constructors but with different set of parameters is called Constructor overloading. Constructors automatically execute in the beginning of the program. Constructor has the same name as the name of the class. It is used for memory allocation and it does not have any return type.
For example;
constructor(int value2, int value2)
constructor(int value1, int value2, int value3)
__________________
Claire

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Claire_Anderson is offline   Reply With Quote