How structures and classes in C++ differ?

Question:
How structures and classes in C++ differ?

1.In Structures, members are public by default whereas, in Classes, they are private by default

2. In Structures, members are private by default whereas, in Classes, they are public by default

3.Structures by default hide every member whereas classes do not

4.Structures cannot have private members whereas classes can have

Posted Date:-2021-02-21 05:12:05


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!