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



Subscribe to Tutorials

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. Good and Effective example
thank you

View Tutorial          By: Perumal Naren at 2009-12-30 03:10:50

2. i want to learn j2me basic to ....
View Tutorial          By: gopiraj at 2012-12-21 11:52:01

3. insert a value in excel is not a problem but inser
View Tutorial          By: durga at 2010-03-05 23:08:02

4. It's good working very well...............
View Tutorial          By: avinash at 2013-03-07 09:38:21

5. how can get ip url...?
View Tutorial          By: arjuna at 2011-11-23 03:31:46

6. Great details you provided here, very straight for
View Tutorial          By: Jackie Wong at 2010-02-05 10:52:25

7. Good examples. However... I am testing for a Hex v
View Tutorial          By: Doug Whitehead at 2008-11-29 17:10:43

8. Don't forget the native type char, which is a 16 b
View Tutorial          By: Ron Stern at 2011-09-18 17:24:12

9. the best explaination
View Tutorial          By: kingh at 2010-09-17 04:06:46

10. Nice its very good starter
View Tutorial          By: Gajula Mahesh at 2012-10-28 13:33:06