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. The last output is not :John Doe's current balance
View Tutorial          By: Santosh at 2010-06-01 22:54:21

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

3. Hibernate with annotations and QBE api reduced our
View Tutorial          By: Andrew at 2011-04-29 10:34:26

4. I think u've done well, just that more examples wi
View Tutorial          By: Mac at 2011-01-23 10:22:10

5. Guys,

Please explain detail steps w

View Tutorial          By: Parthasarathy at 2010-06-02 08:13:12

6. Simple Codes please... I just wonder why does my p
View Tutorial          By: Joseph at 2009-11-12 05:37:50

7. why push is error in st.push(new Integer(a)); ? an
View Tutorial          By: ann at 2015-02-02 09:23:41

8. Very good article on string , please also mentions
View Tutorial          By: Subham at 2014-04-29 18:01:04

9. Thank you
View Tutorial          By: dara at 2009-12-19 02:46:52

10. I can't get it untill now. I need further explaina
View Tutorial          By: johnlie at 2011-01-19 20:31:09