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. FileOutputStream will create the file if it does n
View Tutorial          By: Peter at 2012-02-07 13:25:16

2. nice work.......
View Tutorial          By: sukirti at 2011-05-06 16:30:19

3. plzzz xplain all d buzzwads.....
View Tutorial          By: sindhu at 2010-12-10 08:49:27

4. Great! Concise, helpful, a real life-saver. Google
View Tutorial          By: Motti Shneor at 2012-07-31 14:29:37

5. can u explain about printStackTrace()method.what i
View Tutorial          By: himabindu at 2009-06-10 20:03:14

6. Good article
View Tutorial          By: Manu Francis Mathew at 2009-12-18 00:50:45

7. Thank you. It is very good.
View Tutorial          By: tapes pra at 2011-12-08 09:23:31

8. Great help
View Tutorial          By: Rajeshvar at 2009-11-04 08:43:09

9. very good description ,clear and simple
View Tutorial          By: swapnil at 2011-06-24 06:33:10

10. I entered four different objects into an ArrayList
View Tutorial          By: ADC at 2010-02-25 18:43:32