Understanding the different members of a class