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



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. Nice Article.
View Tutorial          By: Swathi Kumar at 2012-04-15 10:44:14

2. good.
View Tutorial          By: Karthik at 2007-10-20 07:03:20

3. dear sir/madam
I am using netbeans IDE 7.0

View Tutorial          By: bangaram at 2011-07-19 12:03:04

4. the example program that given above for recursion
View Tutorial          By: bharathi at 2012-07-17 09:31:14

5. hi purushothaman
thanks for your kind resp

View Tutorial          By: sandeep das at 2009-04-11 10:42:58

6. @ Qui:

You can set the CSS Style:
View Tutorial          By: hache at 2010-06-22 02:02:56

7. this is not good example we want better...
View Tutorial          By: sabari nathan.p at 2011-06-15 03:27:18

8. @Amit Shrivastava : Dear Amit I have tried the sam
View Tutorial          By: Sanjay at 2015-05-14 19:15:51

9. Thank you for this. I am a beg and this is making
View Tutorial          By: mac at 2011-08-23 13:47:15

10. I want to using swith with string...
How to

View Tutorial          By: anuj at 2015-03-04 18:22:29