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?
- A.
::
- B.
<<
- C.
>>
- D.
:
Attempted by 235 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.