[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 :: Functions - Discussion

Home > C++ Programming > Functions > MCQs Questions Discussion

10 / 14

Choose the correct option.

Static member functions

Acan access only static members in the same class

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

Ccan access constant members.

Dboth (b) arid (c)

Answer: Option (Login/Signup)

Show Explanation

However static member functions are independent of the objects of class. we can access a static function directly using the scope resolution operator '::'.

A static member function will only have access to static members of the class.

Asked In ::

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here