+ 3
what is constructor explain briefly?
what is constructor explain briefly?
2 Antworten
+ 3
Basically the code inside the constructor gets run when a new object is created (in case u want some initial value).
Little code example below:
https://code.sololearn.com/c8BqR7GNEd26/?ref=app
+ 2
Proceed in the C++ course and then you can the lesson for constructor in Object-oriented Programming
https://www.sololearn.com/learn/CPlusPlus/1715/
https://www.sololearn.com/Discuss/1747337/?ref=app
https://www.sololearn.com/Discuss/1642665/?ref=app
https://www.sololearn.com/Discuss/1615489/?ref=app
https://code.sololearn.com/WKFF4vOCr3mi/?ref=app