What is output by the following code? Class A public: virtual std::string foo() { return "A"; } }; class B : public A pu
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
What is output by the following code? Class A public: virtual std::string foo() { return "A"; } }; class B : public A pu
What is output by the following code? Class A public: virtual std::string foo() { return "A"; } }; class B : public A public: virtual std::string foo() { return "B"; } }; class C : public Af public: virtual std::string foo() { return "C"; } class D : public c public: virtual std::string foo() { return "D"; } }; Aa = new BO; C C = new D): std::cout << a->fco() << std::endl; Select one: OB OD ос OA
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!