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



Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. Wow! Thank you!
View Tutorial          By: David at 2013-04-24 15:52:45

2. Gracias, it worked.
View Tutorial          By: Eduardo at 2009-09-09 12:16:30

3. i am getting this error how to erase it please tel
View Tutorial          By: laxmibvsn at 2012-10-16 15:45:05

4. Thank you!!
View Tutorial          By: Diego at 2015-07-16 21:11:58

5. Real Life example of using Volatile
*******

View Tutorial          By: Mayank at 2011-01-25 15:44:21

6. hi iam new to java i need simple java programs pls
View Tutorial          By: naga at 2010-10-06 03:45:18

7. while compiling above program, iam getting this ER
View Tutorial          By: ss chary at 2013-07-15 08:06:18

8. good
View Tutorial          By: [email protected] at 2014-08-28 14:02:28

9. Hi. I have implemented the code and controls just
View Tutorial          By: eibod at 2011-02-13 04:58:44

10. Interfaces contains all abstract methods(with out
View Tutorial          By: Mahesh at 2012-11-09 06:14:47