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
Bitfield too small to hold all enum values
homework
HashRK
kadane's algorithm
Program
TwoVarRegression
maya angelou
Bin Tree build
TmpFib
Extended Euclidean Algorithm