try a hello world program.
camthalion95
Junior Poster in Training
59 posts since May 2008
Reputation Points: -14
Solved Threads: 0
once you get started with your phone book, I'd suggest these two classes
class personalNumber{
public:
personalNumber(string, number);
string getName(void);
int getPhoneNumber(void);
//...
private:
string name;
int number;
//...
}
and
class businessNumber{
//...
}
object orientation means separating things into discrete, identifiable units... it's kind of like building robots
... you start with a bolt and plates to build an arm, you take two arms and some plates and build a torso...
ninjaneer
Junior Poster in Training
56 posts since Jun 2008
Reputation Points: 10
Solved Threads: 6