using very very simple functions because need to use inheritance in multiple classes
so let's say I said
Code:class a { public: void print() { cout << "blah blah" << endl; } }; class b { public: void print2() { cout << "blah blah2" << endl; } }; int main() { // } return 0;
what i'm trying to do is simply call either print or print2.. but I'm not passing anything to the function.. can this be done? Every example I have uses int values etc...