#include template class Base{ public: void func(){ // (1) std::cout << "func\n"; } }; template class Derived: public Base{ public: void method1() { // (2) } }; int main(){ std::cout << '\n'; Derived derived; std::cout << '\n'; }