Question 101Asked in BPSC TRE 2.0 (2023) Computer Science Class 11-12

Which of the following is used to define the members of a class externally in C++?

  1. A:
  2. B: :
  3. C#
  4. DMore than one of the above
  5. ENone of the above
Show answerHide answer

Correct answer: (B) : :

Explanation

The scope resolution operator :: defines a member function outside its class, for example void A::show() { }.

From BPSC TRE 2.0 (2023) Computer Science Class 11-12 — Previous Year Paper

This is question 101 of BPSC TRE 2.0 (2023) Computer Science Class 11-12 — Previous Year Paper. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.