Assignment and polymorphism
Breymann, Ulrich
Assignment and polymorphism
Copy assignment of C++ objects of derived classes does not seem to be a trivial task for classes that need a special (i.e., not system-generated) copy constructor, destructor, and assignment operator. After discussing the meaning of copy assignment, I address polymorphic assignment and the corresponding type roles
SYSTEMS DEVELOPMENT
METHODS
OBJECT ORIENTED PROGRAMMING
LANGUAGE C++
H004.415 JOU
Assignment and polymorphism
Copy assignment of C++ objects of derived classes does not seem to be a trivial task for classes that need a special (i.e., not system-generated) copy constructor, destructor, and assignment operator. After discussing the meaning of copy assignment, I address polymorphic assignment and the corresponding type roles
SYSTEMS DEVELOPMENT
METHODS
OBJECT ORIENTED PROGRAMMING
LANGUAGE C++
H004.415 JOU