Programming Tutorials

Comment on Tutorial - Public versus Private members in C++ By Baski



Comment Added by : JC

Comment Added at : 2013-04-16 01:49:52

Comment on Tutorial : Public versus Private members in C++ By Baski
In listing 6.2 I don't see the variable name itsAge in lines 9 or 10 or variable name itsWeight in lines 12 and 13. How does the accessor method correctly identify the member variables defined in lines 20 and 21? Is this a typo or massive ignorance on my part?

View Tutorial