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
BreakfastMenu array
BubDoubLinArray
TemplateBinTree
PhB
Вывод элементов массива
HalumResto
reverseKNode
SEGMENTED SIEVE
pi with cmath
Using initializer_list<T>