question about order in class
Posted
by helloWorld
on Stack Overflow
See other posts from Stack Overflow
or by helloWorld
Published on 2010-06-17T10:29:39Z
Indexed on
2010/06/17
10:33 UTC
Read the original article
Hit count: 121
c++
hello, can somebody please explain the order of private and public is important or no? for example:
class Account{
public:
Account(string firstName, string lastName, int id);
void printAccount();
private:
string strLastName;
string strFirstName;
};
will be the same as:
class Account{
private:
string strLastName;
string strFirstName;
public:
Account(string firstName, string lastName, int id);
void printAccount();
};
© Stack Overflow or respective owner