0

Please I want to know if we can create objects outside of the main function and why in c++

25th Aug 2022, 9:37 PM
Abban Justice
1 Answer
+ 1
Yes, you can. Well the reason is majorly based on scope. C++ allow us to create object to create object as a global, automatic and static
25th Aug 2022, 11:58 PM
Mirielle
Mirielle - avatar