Vidyalelo
Computer Science · Q274

Object Oriented Programming Using C++

Engineering and GATE · Computer Science · question 274

Q274

A function in a derived class that has the same name as a function in the parent class _____

A.
will cause an error message to display
B.
will override the base class function
Answer
C.
will be overridden by the base class function
D.
will execute immediately after the base class function executes

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board