Which of the following statements are correct? Data members ofa class are by default public. Data members of a class are by default private. Member functions of a class are by default public. A private function of a class can access a public function within the same class. Member function of a class are by default private.

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

Question:
Which of the following statements are correct?

Data members ofa class are by default public.
Data members of a class are by default private.
Member functions of a class are by default public.
A private function of a class can access a public function within the same class.
Member function of a class are by default private.

1.1, 3, 5

2.1, 4

3.2, 4, 5

4.1, 2, 3

Posted Date:-2021-02-25 10:32:15


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!