I have class like below in VC++:
class Student{
int id;
char *name;
public:
Student(){}
int compare(Student s){
return strcmp(name, s.name)
}
}
I feel so strange, I can access direct to "name" of "s" without getter/setter, is there something wrong?