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.
Structure
• By default the members of Structures are public.