MCQs > IT & Programming > C++ > Consider the following class hierarchy: class Base { } class Derived : public Base { } Which of the following are true?

C++ MCQs

Consider the following class hierarchy:
class Base
{ }
class Derived : public Base
{ }
Which of the following are true?

Answer

Correct Answer: The following line of code is valid: Base *object = new Derived();

Explanation:

Note: This question has more than 1 correct answers

Note: This Question is unanswered, help us to find answer for this one

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it