Open In App

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/amp/
Quiz of this Question

Article Tags :