+ 1
What is the answer in the speace
fill in the blanks to declare a class "test" with a "foo()" public member function. declare a pointer "my ptr" to "test" and call "foo()" via the pointer. class test { public: void foo () { ;{{ ____ my ptr = new test(); my ptr ___ foo();
5 odpowiedzi
+ 7
Forgot the "*" Valentin ;).
test* myptr = new test();
myptr->foo();
+ 16
test* myptr = new test();
myptr->foo();
//Oops...^_^
+ 5
Why do you ask? Was it in challenges?
0
Public
test*
->