Jump to content

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
Cookies help us deliver our services. By using our services, you agree to our use of cookies.