1. Home
  2. Computer Science MCQs
  3. C++ and Object-Oriented Programming
  4. Function overloading in C++ means:

Added 30 Nov -0001

Function overloading in C++ means:

  1. a function that calls itself repeatedly at run time
  2. the same function declared inside two classes
  3. replacing a base-class function entirely
  4. functions with the same name but different parameter lists Correct answer

Correct answer

D. functions with the same name but different parameter lists

14 views

MCQSEXAM

Explanation

Overloads share a name but differ in the number or types of parameters; the compiler selects the right one.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More C++ and Object-Oriented Programming MCQs

Practise all C++ and Object-Oriented Programming MCQs

Similar MCQs