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. Thanks, how about using isset() function on page/U
View Tutorial          By: Paolo at 2009-06-01 07:29:10

2. Excellent.. simple and too good to understand
View Tutorial          By: venkat at 2010-05-11 00:30:02

3. Best Example for Inheritance. Thank lot!

View Tutorial          By: Periyasamy C Chennai at 2010-07-09 01:35:30

4. pretty good explanation
View Tutorial          By: Prithwi at 2009-11-26 07:28:33

5. What kind of elements can be stored in arraylist ?
View Tutorial          By: Himanshu at 2009-09-17 00:00:41

6. Dear All, I am getting the following exception for
View Tutorial          By: Protik Basu at 2008-10-31 05:30:36

7. My friend, How to user ArrayList?
View Tutorial          By: Joao Neto at 2009-06-04 06:28:17

8. May I have some examples of function exp and pow,
View Tutorial          By: janee at 2009-08-06 07:57:07

9. i am new to java, please send simple programs, and
View Tutorial          By: jegan at 2011-07-11 02:22:37

10. at
OK
at+cmff=1
OK
at+

View Tutorial          By: shrinivas at 2009-03-07 23:16:51