1. Home
  2. Computer Science MCQs
  3. C++ and Object-Oriented Programming
  4. Which statement about a static member function is true?

Added 30 Nov -0001

Which statement about a static member function is true?

  1. It may read any non-static member
  2. It must be called through an object
  3. It is copied once per object
  4. It has no this pointer at all Correct answer

Correct answer

D. It has no this pointer at all

15 views

MCQSEXAM

Explanation

A static member function is not bound to any object, so it receives no this pointer.

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