Hello Community I can't finish it... pleas help my with the blanks.
7/7/2017 6:17:33 AM
Christian Liebel5 Answers
New Answer1 Public 2 test * (to declare a pointer to that class) 3 -> (to access to foo method)
Fill in the blanks to declare a class "test" with a "foo()" public member function. Declare a pointer "myPtr" to "test" andd call "foo()" via the pointer. Blank code: Class test{ ______: void foo(){ } }; _____ myPtr = new test(); myPtr __ foo(); What I know at this moment: Class test{ public: void foo(){ } }; Test_ myPtr = new test(); myPtr __ foo(); here it is
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message