QA – Placement Quizzes | SP Contest 2 | Question 8

A C++ class can contain a member of SELF type if the member is.

  1. Static
  2. Pointer
  3. Non-static

(A) Only 3
(B) Both 2 and 3
(C) Both 1 and 2
(D) Only 1


Answer: (C)

Explanation: https://www.geeksforgeeks.org/can-a-c-class-have-an-object-of-self-type/

Quiz of this Question



My Personal Notes arrow_drop_up


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.