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. Nice article...
View Tutorial          By: Sudhanshu at 2012-08-02 06:19:42

2. XML Parsing - Simplified.
Thanks.

View Tutorial          By: Piyush at 2011-05-19 22:56:23

3. i have run the program..bt there r so many excepti
View Tutorial          By: ayan at 2010-05-26 10:37:51

4. example is good but in c++ we can't use printf().
View Tutorial          By: vikas at 2009-10-26 20:12:08

5. Sir, this is very helpful for students and profess
View Tutorial          By: Pankaj Choudhary at 2010-10-19 00:24:36

6. marvelous
View Tutorial          By: Anon at 2009-02-12 07:51:44

7. DON'T USE GETS!!!!!!!!!!!!!!! IT'S DANGEROUS!
View Tutorial          By: Caterpillar at 2012-04-23 13:22:42

8. Great work ;)
View Tutorial          By: Rizwanulla Sharieff at 2012-08-21 04:42:41

9. What about object bean with view scope?
View Tutorial          By: Awo at 2012-02-11 12:17:36

10. it is very easy to understand to the learners.
View Tutorial          By: venkat at 2010-06-19 02:37:36