View Single Post
  #10 (permalink)  
Old 01-20-07, 08:10 AM
balkman balkman is offline
New Member
 
Join Date: Jan 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by King Coder
The default accessibility for a class is private while a structure is public. Classes can define behavior and attributes while structures only define attributes. And classes are passed through reference while structures are passed through value.

Structures can still be used in C++.

You mentioned earlier that classes are passed by reference, while structures are passed by value. You might be thinking of C# or Java (I don't think Java has structs though) because everything in C++ is passed by value into a function unless otherwise noted with an ampersand (making it pass by reference).
Reply With Quote