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
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
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
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. your second last example in above code (Character
View Tutorial By: jyoti at 2011-11-06 17:01:19
2. I'm coding a webservice and this is exactly what I
View Tutorial By: Cristian at 2014-11-14 12:52:34
3. super
View Tutorial By: asasdfsa at 2014-05-29 05:23:04
4. Your explanation and example for toString() is gre
View Tutorial By: Dinesh at 2012-10-19 08:29:13
5. nice tutorial with discussion
View Tutorial By: Md Firoz at 2012-01-07 11:00:29
6. please would someone help me create a simple java
View Tutorial By: christopher at 2012-12-05 00:32:50
7. thanks for this example
View Tutorial By: hai at 2011-12-16 05:36:14
8. Dude, u xplaining lyk u already telling pros!Pls t
View Tutorial By: Brianjambo at 2009-04-14 06:32:13
9. Hi Prathamesh,
Maybe the COM port to which
View Tutorial By: Ramlak at 2007-03-19 00:46:49
10. it is gooo...very helpful to know the basics
View Tutorial By: srikanth at 2010-08-24 00:38:57