Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > Standard C, C++

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 05-11-2005, 06:16 AM   #1 (permalink)
deepak_kr_mehta
banned
 
deepak_kr_mehta's Avatar
 
Join Date: May 2005
Posts: 23
deepak_kr_mehta is on a distinguished road
confused on const object or const member function

hello sir
i m confused with concept name like which is const object and which is const member function the code is below
Code:
#include<iostream>
#include<conio>
class student
{
int id;
public:
void set(int i){
    id=i;
}
void display()const    //is it const object or const member function
{
cout<<id;
}
};
deepak_kr_mehta is offline  
Old 05-11-2005, 07:07 AM   #2 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
Bye.
__________________
Valmont is offline  
Old 05-11-2005, 07:09 AM   #3 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,712
redhead is on a distinguished road
Read this thread, next time please search the forum for matching explanations, or atleast look at the top 15 threads...
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
about const object and const member function deepak_kr_mehta Standard C, C++ 1 05-06-2005 05:01 AM
Fatal error: Call to a member function on a non-object sswong98 PHP 3 01-16-2005 07:44 AM
Fatal error: Call to a member function on a non-object CrossMediaGroup PHP 2 11-28-2004 02:46 PM
operate overloading member function in C# sureshkumar_kc MS Technologies ( ASP, VB, C#, .NET ) 2 10-15-2004 02:36 AM
C# member function sureshkumar_kc MS Technologies ( ASP, VB, C#, .NET ) 2 10-15-2004 02:08 AM


All times are GMT -8. The time now is 10:46 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting