Question

Consider the following C++ code: #include class Base { public:     virtual void show() = 0; }; class Derived : public Base { public:     void show() override {         std::cout

A `Derived::show()`
B `Base::show()`
C A compile-time error indicating that `Base` is an abstract class.
D A runtime error.
E No output, but the program would terminate successfully.
Practice Next

Hey! Ask a query