Comment on Tutorial - const Member Functions in C++ By Emiley J



Comment Added by : z

Comment Added at : 2010-05-09 12:02:17

Comment on Tutorial : const Member Functions in C++ By Emiley J
u said that const function cant change object.can they change a static member of object?
itry that.and it can change it!why?

class c{
static int d;
void f() const {d=0;} //!
}
int c::d;
...
it has no error


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. javax.comm.NoSuchPortException
at javax.co

View Tutorial          By: agnas at 2008-04-29 16:26:41

2. Very good examples are given by you on overloading
View Tutorial          By: Ankur Rautela at 2011-11-03 10:22:46

3. Iwant javascript or Android.Thankyou
View Tutorial          By: bahman at 2013-01-01 01:27:20

4. Thanks a lot lot lot for this, but when I run the
View Tutorial          By: Kedjimo at 2011-10-06 06:13:10

5. This is one of the most impotent , Helpful , Easy
View Tutorial          By: Sujay Mandal at 2012-09-21 16:24:06

6. nice tutorial,but if provided with the complete ex
View Tutorial          By: Prasant Kumar Sahu at 2013-01-07 13:17:20

7. i am trying to create a handy and powerful barcode
View Tutorial          By: incoming barcode scanner at 2014-06-23 04:23:42

8. Hi all, i have tried above code, but am getting fo
View Tutorial          By: swathi at 2010-06-24 05:18:28

9. This is very clear and explains the concepts in a
View Tutorial          By: Reite at 2011-02-18 13:55:07

10. good....
View Tutorial          By: Rini at 2013-01-08 10:44:54