Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
base base
//g++ 5.4.0 #include <iostream> using namespace std; class base{ public:void basefun(){cout<<"frm base"<<endl; } }; class derr:public base{ public:void basefun(){cout<<"frm derr"<<endl; }}; void somefunc(base *baseobj){ baseobj->basefun(); } int main() { base baseobject; somefunc(&baseobject); derr derrobject; somefunc(&derrobject); }
run
|
edit
|
history
|
help
0
Dar
Shorting in one line using class members std and boost bind
Test 01 c++
Procesos E
KMP substring search
0-1 Knapsack
stl_sizeof.cc
Einstein's Physics
silnia
multiply two numbers (previous)