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

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

Java program to check if user input is an even number

Archived Comments

1. Hi, I have one problem in spinner items. I want to
View Tutorial          By: soodi at 2011-10-18 18:15:58

2. how can i give me a assign value to mutldimentiona
View Tutorial          By: shinde datta at 2013-01-12 10:41:15

3. 29. It is not a deadlock. What will actually happe
View Tutorial          By: Sasha at 2012-01-24 14:34:03

4. Hi,
I am using Nokia 3110c connected to PC.

View Tutorial          By: Satish Raj at 2009-04-04 07:32:54

5. Thanks
muchas gracias
Excellent

View Tutorial          By: Alfredo at 2010-05-31 09:00:36

6. very nice..!
View Tutorial          By: neeraj at 2012-04-21 11:12:08

7. Small modification.
System.out.println(&qu

View Tutorial          By: Rohit at 2012-02-07 16:22:52

8. "For example, float can be useful when repres
View Tutorial          By: rangzen at 2014-03-28 09:31:47

9. Thank you for this tutorial. Thank you all the mor
View Tutorial          By: sd at 2013-09-09 05:38:52

10. I want de total main prg to send and receive... se
View Tutorial          By: sharu at 2011-09-12 16:49:24