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

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

Java program to check if user input is an even number

Archived Comments

1. Sat Apr 23 10:44:14 IST 2011:Sender:*** time out a
View Tutorial          By: sasivarnan at 2011-04-23 01:17:18

2. what are the required equipments to run j2me
View Tutorial          By: messi at 2012-11-13 13:15:18

3. Hi
I tried to use this on a windows 7 32 b

View Tutorial          By: Asela at 2012-01-26 18:35:57

4. help, i want to migrate my system (asp to jsp)

View Tutorial          By: gendull at 2007-02-25 21:03:20

5. javax.comm.NoSuchPortException
at javax.co

View Tutorial          By: nikhil at 2009-07-22 05:58:55

6. Here is my issue. The sql which comes thru the JTD
View Tutorial          By: Kumar at 2012-02-21 02:42:08

7. Hi can anyone help me out, i need a full jsp code
View Tutorial          By: thangaraj at 2007-03-20 12:40:05

8. i don't use mysql,but oracle.
how to resolv

View Tutorial          By: Mike Zhu at 2009-06-23 19:20:06

9. This tutorial is good for beginners. If you provid
View Tutorial          By: Sateesh Bobby at 2008-12-09 23:56:18

10. nice examples,but i have one problem in my project
View Tutorial          By: swati at 2015-04-30 10:48:13