Hello, I'm new in C++ :P ...
Btw I have some problem with inheritance and templates...
Is OK!Code:class A { public: void testA() { printf("Hello from A\n"); }; }; class B : private A { public: void testB() { testA(); printf("Hello from B\n"); }; };
But, how do I do this??Code:template<typename T>class A { public: void testA() { printf("Hello from A\n"); }; }; template<typename T>class B : private A // <--- is it right??? { public: void testB() { testA(); // <--- ??? printf("Hello from B\n"); }; };



LinkBack URL
About LinkBacks


