Const Member Function

Hi,

Want some help with a question. Below is the question:
Last edited on
1
2
3
Object o;
const Object& ref = o;
o.method();//you can't do this if method() isn't const 
Ohh no, I am talking about this
Last edited on
Why did you delete the question?

Ohh no, I am talking about this
When you call method(), this points to o.
Last edited on
I hate these guys. They get their answer and delete their posts to obscure the information received for some reason. I think they do it so they aren't caught cheating by their teacher?

I'll start a blacklist of users that do this. I'll stop replying to any user that does this.

Better yet: I will start quoting their entire posts. They won't be able to delete my quotes.
Last edited on
Topic archived. No new replies allowed.