Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
inheritance
//Title of this code #include <iostream> using namespace std; class A { public: virtual void foo(int a) { cout << "A_foo" << a << endl;; } }; //template<class T> class B : public A { public: void foo(int a) { cout << "B_foo" << a << endl;; } }; class C : public B { public: void foo(int a) { cout << "C_foo" << a << endl;; } }; int main() { A *val = new C(); val->foo(1); std::cout << "Hello, world!\n"; }
run
|
edit
|
history
|
help
0
SIP_parser_with_std_regex_need_help_to_improve_it.cc
LRU - template
DSU on tree (http://codeforces.com/contest/600/problem/E)
DeltaX campus recruitment
CPP - Arrays - Ex.2 - Solution
Wygner aprendizado
Lex cpp
doubly
Vector impl
Scope guarding