Skip to main content
gamedev.net
🔒 Locked

Operator Overriding

Started by vbisme Nov 27, 2001 at 10:22 PM 2 replies 200+ views
Original Post
vbisme
vbisme
Can someone explain to me operator overriding?
Floppy
Floppy
You mean operator overloading. It is basically making expressions like this:

vector1.add(vector2);

to

vector1 + vector2;

I don''t mean to be rude but...
If you were not able to find this information by yourself, it either means you are a poor searcher or you are just inherently lazy.

Go to Google and search for "C++ Operator Overloading."

If you want to become a GOOD programmer, you will learn how to figure things out by yourself.

If you seriously can not find the answer after an hour or so of searching, then think about posting in these forums.

Thanks!
invective
invective
http://www.parashift.com/c++-faq-lite/operator-overloading.html
Floppy
Floppy
Nicely done invective

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.