C++, What is the role of the constructor of a class | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

C++, What is the role of the constructor of a class

The role of the constructor of a class is: - To create the objects of this class - Initialize the attributes of objects from this class - To check that the object is still present in the RAM of the computer. Please select one

13th Oct 2020, 12:52 PM
Mohammed Elhafed Messini
Mohammed Elhafed Messini - avatar
6 Answers
13th Oct 2020, 1:03 PM
Coding Cat
Coding Cat - avatar
+ 1
Hmm, for me is working. Maybe that's why you never did the C++ course?
13th Oct 2020, 1:13 PM
Coding Cat
Coding Cat - avatar
0
Nasif Rahman I am bad in english and i start cource from another source, and i colect question to translate it
13th Oct 2020, 1:19 PM
Mohammed Elhafed Messini
Mohammed Elhafed Messini - avatar
0
Thomas Funny thing is, the link only opens with the app, I tried to open it with browser and got 404 error 😁 I think the OP is using SoloLearn web ... 🤔
13th Oct 2020, 1:20 PM
Ipang
0
Ipang Oh yes, you're right. That's crazy 🤔
13th Oct 2020, 1:27 PM
Coding Cat
Coding Cat - avatar
- 1
@Thomas Page not found
13th Oct 2020, 1:07 PM
Mohammed Elhafed Messini
Mohammed Elhafed Messini - avatar