PDA

View Full Version : Scope Resolution Operator



anon10038
04-05-2012, 02:32 AM
Hello Sir,

Is it necessary to define a function of a particular class outside it with the help of scope resolution operator. We can't define it inside the class and then call it with the help of an object. Why we use Scope resolution operator for making the code tough?

Thanks,

anup
04-05-2012, 06:14 AM
Anon10038,

If you do not do that, you will need to put all your code in header files which is a bad idea due to several reasons. Your compilation times will increase to name a few.

Thanks,

Anup