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

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

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

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

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

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

4.Both A and B.

Posted Date:-2021-02-24 09:21:47


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!