Match the following. i. Overriding — A. Allows a function of operator to be given more then one definition
Match the following.
i. Overriding — A. Allows a function of operator to be given more then one definition
ii. Over loading — B. A function that is called to deallocate memory
iii. Destructor — C. The ability to change the definition of an inherited method
Show answerHide answer
Correct answer: (C) i-C, ii-A, iii-B
Explanation
Overriding redefines an inherited method in a derived class, overloading gives one function or operator several definitions, and a destructor releases memory/resources when an object is destroyed.