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



Comment Added by : peter

Comment Added at : 2011-07-20 13:13:44

Comment on Tutorial : Public versus Private members in C++ By Baski
Very good.
But is this (Accessor functions enable you to separate the details of how the data is stored from how it is used. This enables you to change how the data is stored without having to rewrite functions that use the data.) the only thing that we cannot refer to private member through a statement like this:
Cat Boots;
Boots.itsAge=5; // error! can't access private data!


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. I think this code is just simple enough to be foll
View Tutorial          By: WAQ at 2010-11-24 10:41:58

2. Good and optimum introduction to J2ME application
View Tutorial          By: sabextcc10@gmail.com at 2013-01-14 10:37:57

3. Hi Ramlak,
I am using jdk1.4.2 to run the a

View Tutorial          By: mounika at 2008-04-27 03:05:36

4. thanks for giving the example of abstract class...
View Tutorial          By: mahesh at 2010-04-11 08:20:45

5. hello

my problem is how to intrega

View Tutorial          By: mihir patel at 2013-11-28 18:10:04

6. can any body help me how to execute this code ....
View Tutorial          By: nikhil at 2009-06-04 23:10:30

7. what about the remaining explanation......do anyth
View Tutorial          By: raki at 2011-11-07 10:47:25

8. Works like a charm for me ! but i stuck with an is
View Tutorial          By: santosh at 2014-12-17 12:44:09

9. thank you
View Tutorial          By: latif mohammad khan at 2013-01-18 09:53:18

10. thanks bro it helped me to answer my facu
View Tutorial          By: kasmin at 2010-01-08 08:11:32