ProAnswers.org

what is the difference between structure and class?

1 Like

difference between a structure and a class is that all members in a class are private by default whereas they are public in a structure.

Structures can not be inherited. Classes can be inherited.