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

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. these above examples of overloading and overriding
View Tutorial          By: janmejay pant at 2011-03-02 22:06:16

2. Thank you very much for explaning the things in su
View Tutorial          By: Sunil Yadav at 2010-05-27 04:04:31

3. Is site ki badolat main C++ mein paas ho gya !
View Tutorial          By: sharif at 2011-08-06 10:06:31

4. example required
View Tutorial          By: revathy at 2009-09-03 01:53:04

5. Hello all..
can anyone please help me.. i

View Tutorial          By: Christoven at 2011-06-15 05:55:16

6. very good tutorial
View Tutorial          By: Anonymous at 2009-06-13 01:14:25

7. Thanks it did help to get complete clarity
View Tutorial          By: Vivek The Great at 2012-05-07 17:31:32

8. we can write an abstract class without any abstrac
View Tutorial          By: keerthi at 2013-08-20 16:31:38

9. Nice example to understand what does the string T
View Tutorial          By: vikash from india at 2011-06-23 06:39:03

10. where is the main class .
View Tutorial          By: rishi at 2015-10-02 10:17:17