0

when constructor is parameterize, what does it mean

constructor

10th Aug 2016, 5:06 PM
Walter Eke
2 Answers
+ 1
It's just a constructor that takes in arguments. Example: class myClass { public: myClass(int x) { //code } }; int main() { myClass obj(5); }
10th Aug 2016, 8:45 PM
Cohen Creber
Cohen Creber - avatar
0
the constructor take an argument that is initializing the instance variables
14th Aug 2016, 4:44 PM
srilekha