Index of /~TDDD38/lecture/src/P-E-M-C
Comments
--------
Person is an abstract, polymorphic (base) class.
It is important to declare a virtual destructor for a polymorphic base
class. Complier generated destructors of subclasses will then also be
virtual.
The contructor taking a name and a civic registrstion number is declared
protected to emphasize that Person is an abstract class; have no public
constructor.
The copy constructor id declared protected and defaulted. Not allowed as
public operation, but to be used by clone() and subtyp copy constructors.
The copy assignment operator is declared private and deleted. Any attemp
to use it will cause a compile error, since it is not defined.