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

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

1. Classes cannot have data as protected members.

2.Structures can have functions as members.

3.Class members are public by default.

4.Structure members are private by default.

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


More MCQS Questions and answers

Search
Olete Team
Online Exam Test Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Test 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!