On Tue, 2 Sep 1997, Bode, Wyatt wrote: > Is there any real difference in C++ between a 'struct' and a 'class' > with all public data members (other than the fact that you could have > member functions)? Just curious. The only differences in C++ between a struct and a class are the default modes of the data members. structs default to public and classes default to private, but both can explicitly change that by using <mode>: Yes, you can even have member functions and constructors/destructors in structs. I wouldn't recommend it though. -- Brian +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST