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


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!