Writing a program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Writing a program

Write a program that uses a constructor to initialise an object

13th Jul 2018, 12:03 PM
Vincent Alulu
Vincent Alulu - avatar
5 Answers
0
Writing a program that uses a constructor to initialise an object
13th Jul 2018, 12:25 PM
Vincent Alulu
Vincent Alulu - avatar
0
I'm having problems writing such a problem and that's why I asked all the questions I did
13th Jul 2018, 12:28 PM
Vincent Alulu
Vincent Alulu - avatar
0
Coming Up
23rd Jul 2018, 7:24 AM
Femi
Femi - avatar
0
BigMommaClass { BigMommaClass(int, int); private: ThingOne thingOne; ThingTwo thingTwo; }; BigMommaClass::BigMommaClass(int numba1, int numba2) : thingOne(numba1 + numba2), thingTwo(numba1, numba2) {}
23rd Jul 2018, 7:27 AM
Femi
Femi - avatar
0
Thanks,,,but is it complete Just that way?? How can I see it in the code playground so as I can run it later...
23rd Jul 2018, 7:32 AM
Vincent Alulu
Vincent Alulu - avatar