regarding assignment operator
hi friends ,
Can anyone please explain why assignment operator of an abstract base class should be protected member of the class
[138 byte] By [
rajpune] at [2007-11-11 7:44:54]

# 1 Re: regarding assignment operator
It can't be private because derived classes might still need to use it, either directly or indirectly. It shouldn't be public because you can't instantiate an abstract class, hence you can't assign it either to another class.
I want however to stress that you don't have to define an assignment operator at all; if you need it in an abstract class, then declare it protected, but otherwise simply leave it undeclared.
Danny at 2007-11-11 21:01:58 >
