0
constructor c++
Could someone please explain me (in an easy way with an example) what the task of a constructor during a class is? I don't get it. I'd be very thankful! Thanks in advance!
1 Réponse
+ 6
A constructor of a class is a function/method triggered when an object is created under that class. (see examples of sololearn tutorials)