why did instantiation an object in source file out of member function? how can use from it? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответов