DEV Community

Discussion on: Getting Cozy With C++

Collapse
 
amorganpd profile image
amorganPD

Thanks for sharing your learnings!

So it looks like structs and classes do only differ in their default access and nothing else:

justsoftwaresolutions.co.uk/cplusp...

Looks like really only for C compatibility, which makes sense. I would default to class when writing for just C++ unless it's a small data structure.