Question: What is correct about the static data member of a class?

Options

A : A static member function can access only static data members of a class.

B : A static data member is shared among all the object of the class.

C : A static data member can be accessed directly from main() .

D : Both A and B.

Click to view Correct Answer

Previous || Next

OOPS Concepts - General Questions more questions

Which of the following is an invalid visibility label while....

Which one of the following options is correct?

Which of the following statements is correct in C++?

Which of the following is used to make an abstract....

Which of the following access specifier is used as a....

Which of the following provides a reuse mechanism?

Which of the following statement is correct?

Which of the following statement is correct?

Which of the following statements is correct?

Functions can be declared to return a reference type. There....

Constructors and Destructors - General Questions more Online Exam Quiz

Windows 2000 Server - Part 1

Windows NT - Part 1

Constructors and Destructors - General Questions

Functions - General Questions

Objects and Classes - General Questions

References - General Questions

Arrays - General Questions

Complicated Declarations - General Questions