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



Ask a Question

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. what about asp.net?
View Tutorial          By: tradeready at 2009-05-06 03:04:20

2. Respected sir,
I am trying to embed windows

View Tutorial          By: arshad at 2011-10-22 17:05:21

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

4. also MEGA IMPORTANT:

make sure you

View Tutorial          By: niko at 2013-04-19 18:55:14

5. hi issac thank you for your sample. can you please
View Tutorial          By: edwin at 2009-05-20 22:04:14

6. thanks buddy is's very nice and useful example
View Tutorial          By: mayur at 2012-11-05 05:00:11

7. hi please help me . i want the full code to send t
View Tutorial          By: Prashant at 2008-04-16 06:08:23

8. package practice_bo;

import practic

View Tutorial          By: nishi at 2011-12-09 02:00:20

9. It worked. Thank U!
View Tutorial          By: Abhijit Kurane at 2010-12-27 11:01:48

10. Hi! Thanks for the examples posted here...it reall
View Tutorial          By: creece at 2009-01-23 17:28:33