Question: please this 2 Consider the code snippet below: class Question f public: virtual void display() const; virtual void display(ostrean& out) const; class Choicequestion : public

Consider the code snippet below: class Question f public: virtual void display() const; virtual void display(ostrean\& out) const; class Choicequestion : public Question public: void display(); What change should be made to allow to override No change needed, as it already overrides Chotcequestion: display() needs to be needs to be explicitly declared needs to be explicitly declared Consider the code snippet below, which uses two pre-defined classes and Int main() \{. Time: test_time[SIZE]; int rand hrs, rand mins, rand secs; ZoneType rand_zone; for ( int 1=0;1write(); cout endl; In order for the loop at the end to show different behavior when calling the function on the two different kind of objects in the array, what must be true? The function must be a virtual function in the base class. The function must be defined only in the base class. The objects in the array must be unrelated to one another. The array should contain objects, not pointers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
