why did instantiation an object in source file out of member function? how can use from it? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

why did instantiation an object in source file out of member function? how can use from it?

I faced with a project as below : Test. h class Test { public: void foo() ; .... } ; extern Test theApp; ____________________ Test.cpp void Test:: foo( ) { .... } Test theApp;

16th Aug 2019, 1:07 PM
Alireza Abbasi
Alireza Abbasi - avatar
0 Réponse