Which of the following is used to access the overridden function of the base…
2018
Which of the following is used to access the overridden function of the base class from the derived class?
Answer: A. :: — The scope resolution operator :: accesses overridden base class functions from a derived class. This syntax explicitly calls the parent implementation instead…
- A.
::
- B.
<<
- C.
>>
- D.
:
Attempted by 572 students.
Show answer & explanation
Correct answer: A
The scope resolution operator :: accesses overridden base class functions from a derived class. This syntax explicitly calls the parent implementation instead of the overridden version.
Loading lesson…