🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: C++ Classes and Objects: all 10 questions

Quiz: C++ Classes and Objects · Question 5 of 10

How many copies of a static data member exist for 100 objects?

How many copies of a static data member exist for 100 objects?

  1. A.100
  2. B.1
  3. C.0
  4. D.101
Answer & explanation

Correct answer: 1

Static members are shared by the whole class.

Can you get the rest right without peeking?

Take the timed Quiz: C++ Classes and Objects quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →