📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!

  • google app store apple app store
  • ✖

      Question

      Consider the following C++ code: #include class Base { public:     Base() {         std::cout

      A Derived constructor\nBase constructor Correct Answer Incorrect Answer
      B Base constructor\nDerived constructor Correct Answer Incorrect Answer
      C Base constructor Correct Answer Incorrect Answer
      D Derived constructor Correct Answer Incorrect Answer
      E No output. Correct Answer Incorrect Answer

      Solution

      The correct answer is B

      Practice Next
      ask-question