QA – Placement Quizzes | SP Contest 2 | Question 8
A C++ class can contain a member of SELF type if the member is.
- Static
- Pointer
- 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
Please Login to comment...