Programming in C++ – Class Vs Structure

Class is a collective representation of a set of member variable and member function under one name.

Structure is a collection of member variables and function of various data types.


Difference between Class and Structure Class
• By default the member of the classes are private.


• By default the members of Structures are public.

You may be interested in:
Programming In C MCQs
Programming In C++ MCQs
Object Oriented Programming Using C++ Short Questions Answers