t1.cpp 246 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #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); }