Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Why struct instead of class?
Re: Why struct instead of class? [message #21817 is a reply to message #21815] Sat, 06 June 2009 17:52 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1427
Registered: September 2007
Ultimate Contributor
Well in modern C++ the difference between struct and class is pretty much trivial and related to default access rights: members in structs are public by default and members in classes are private by default.

C++ has a lot of duplicate features, so I tend to allays use only class to avoid it. But it makes no difference, use the one you like better, just don't mix and match in inheritance trees Smile.
 
Read Message
Read Message
Read Message
Previous Topic: Heap Leaks Detected
Next Topic: Keyboard shortcut
Goto Forum:
  


Current Time: Sat Jun 28 08:40:58 CEST 2025

Total time taken to generate the page: 0.03918 seconds