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