[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C++ Programming :: OOPS Concepts - Discussion

Home > C++ Programming > OOPS Concepts > MCQs Questions Discussion

9 / 14

Choose the correct option.

Static data members

Ashould be initialized like global variables.

Bhas only one copy of it exists for all instances of a class.

Cshould be initialized like extern variables.

Dboth (a) and (b)

Answer: Option (Login/Signup)

Show Explanation

Static members are shared across all instances of a Class which means a static member will only have one copy of it exists for all instances of a class.

Asked In ::

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here