t1.cpp 234 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 #include <iostream> using namespace std; #include "t.h" void fun(Task *); class Satellite: public Task, public Displayed { //virtual void get_debug(){cout<<"Satellite::get_debug()"<<endl;}; }; int main() { Satellite s; fun(&s); }