Polymorphic copy: Difference between revisions

no edit summary
No edit summary
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:
Anonymous user