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. thank for your article it helps us to our studies
View Tutorial          By: shane at 2010-07-21 19:12:22

2. Best Example sir
View Tutorial          By: Hiren Dangar at 2015-04-23 06:55:26

3. Hi All..
Wen i'm running the code..the foll

View Tutorial          By: mounika at 2008-04-26 14:27:30

4. Great!! But when I use wscompile to create stub,I
View Tutorial          By: Baven at 2008-07-22 15:55:52

5. hiiiiiiii
View Tutorial          By: venkateshwarreddy suravaram at 2010-04-30 23:57:01

6. great answer...
View Tutorial          By: nagi ponnagani at 2011-04-29 14:11:21

7. Looks like when I uninstall an app it should be un
View Tutorial          By: Danila Piatov at 2011-05-18 12:03:53

8. OK 0
COM1
javax.comm.CommPortIdenti

View Tutorial          By: sruthi at 2013-01-20 10:37:41

9. PLEASE I WANT A CODE TO BE PUT BEHIND A BUTTON SO
View Tutorial          By: KALUSHA at 2012-07-02 12:32:56

10. i am new to java plz give any sample and simple ja
View Tutorial          By: sham at 2012-03-20 02:30:20