0

Hi all,

I am new to OOP. I am using classes to create a phone book in C++. I don't know how to program, when the user enters the information and click save to generate a file. Also, how do I make GUI using C++.
Can any one help me out?

Thanks
Prab

5
Contributors
4
Replies
5
Views
9 Years
Discussion Span
Last Post by ninjaneer
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...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.