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. I am certifed java Business Component Developer, m
View Tutorial          By: Kobs at 2013-02-26 11:58:22

2. Very well explained and perfectly summarised.
View Tutorial          By: Sachin at 2009-08-30 12:39:27

3. Wow, incredible code!! With some brains this is a
View Tutorial          By: Dem0-n at 2011-06-11 07:10:12

4. hi all m getting following error ,
can anyo

View Tutorial          By: raj at 2008-11-04 21:46:12

5. im having errors in sPort.sendBreak in SerialConne
View Tutorial          By: mrrrc at 2013-03-18 08:54:50

6. Hi, this blog answers my questions but what is the
View Tutorial          By: Edu at 2009-09-20 00:19:27

7. please provide Example instanceof With Collection
View Tutorial          By: siddardha at 2010-08-18 00:30:38

8. Nice Explanation.....
View Tutorial          By: Vinoth at 2012-06-20 09:37:21

9. Nice example to understand what does the string T
View Tutorial          By: vikash from india at 2011-06-23 06:39:03

10. thank you very much
finally i understood th

View Tutorial          By: Marina at 2009-11-29 14:17:43