I am a Java developer. When I need to put a reference attribue in my class, I do this:
public class Account{
private int num;
private Person client;
}
But now, I have to do the same in C++
How can I do that in .h file?
Actually I just have the num attribute:
class Account{
private:
int num;
public:
Account(int num);
~Account();
int getNum();
void setNum(int num);
}
How should I put the Person attribute below and how should I compile it? Thanks.