Question: Consider the following statement: my _ obj - > myfun ( ) ; Which of the following statements are true? I. my _ obj must

Consider the following statement:
my_obj->myfun();
Which of the following statements are true?
I. my_obj must be a pointer to an object.
II. myfun() must be a virtual function.
III. It cannot be determined from this statement alone which function myfun() will actually be exacuted if it is part of an inheritance hierarchy.
I, II, III
II, III
I, III
1, II
 Consider the following statement: my_obj->myfun(); Which of the following statements are

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!