Polymorphic copy: Difference between revisions

Content added Content deleted
No edit summary
Line 1: Line 1:
{{task|Object oriented}}An object is [[polymorphism|polymorphic]] when its specific type may vary. The types a specific value may take, is called ''class''.
{{task}}

An object is [[polymorphism|polymorphic]] when its specific type may vary. The types a specific value may take, is called ''class''.


It is trivial to copy an object if its type is known:
It is trivial to copy an object if its type is known: