What is the difference between classes and structures?
Explanation
Structures (just like classes) can have its name, fields and member-functions. But fields and member-functions have public access modifier by default in case of structures while it is private for classes. Same modifiers are in place by default in case of base class inheritance. There is no more difference between classes and structures.
C++
C++ Quiz
Start Quiz

or Read more about C++ Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback