What is the key difference between structure and class?
- Structures have only public members
- By default, members of a class are private, mem. of a structure are public
- Structures cannot have member functions
- Classes support inheritance while structures do not