The output is Derived. class Base { public: void print() { } }; class Derived public Base { public: void print () ( }; i
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
The output is Derived. class Base { public: void print() { } }; class Derived public Base { public: void print () ( }; i
The output is Derived. class Base { public: void print() { } }; class Derived public Base { public: void print () ( }; int main() { } cout << "Base" << endl; True False cout << "Derived" << endl; Base derivedi; Base ptr &derivedl; ptr->print(); system("PAUSE");
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!