View Single Post
Old Apr 6th, 2005, 7:53 AM   #1
Delete
Newbie
 
Join Date: Apr 2005
Location: Ireland
Posts: 12
Rep Power: 0 Delete is on a distinguished road
C++ Classes - Quick question(s)

At the moment i'm learning classes in C++, i think i pretty much have the basic principles and syntax down but i have a few things i need clarified.

1. I've looked at some examples where the definitions are made inline in the .hpp class decloration. Is it wise to do this or should you always keep them seperate or does it depend on the program/class size?

2. Classes are equivilant to Structures? I've been looking at some socket programmming and they seem to make use of structs quite alot, although most of the socket programming i have seen is in C. So if these programs were to be re-written in C++ would they make use of classes instead of structures?

Please remember i'm still relatively new to this so be gentle.
Delete is offline   Reply With Quote