Is there any way to make the object of a class during the execution time in c++. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is there any way to make the object of a class during the execution time in c++.

i have a class with the name of "bankAccount" and i want to make the objects of this class during the execution time for making different account anyone tell me how this is done

13th Mar 2017, 10:25 AM
Haider Ali
Haider Ali - avatar
1 Answer
+ 1
Use parentheses to create new objects: myAccount = bankAccount()
13th Mar 2017, 4:12 PM
Igor B
Igor B - avatar