Jump to content

Rosetta Code:Village Pump/Suggest a programming task: Difference between revisions

Task: copy polymorphic object
(Task: copy polymorphic object)
Line 32:
:: Added [[Life in two dimensions]]. Conways Game of Life. --[[User:Paddy3118|Paddy3118]] 22:21, 10 October 2008 (UTC)
* Heapsort, Selection Sort, and maybe some other sorts from http://en.wikibooks.org/wiki/Algorithm_implementation/Sorting
 
===OOP===
* Copy a polymorphic object. A polymorphic object contains a an instance of some type S derived from a type T. The type T is known. The type S is possibly unknown until run-time. The objective is to create a copy of such polymorphic object (not to create a reference, or a pointer to). The type T has some method Foo overridden in S, which is then called on the copy to demonstrate that the specific type of the copy is indeed S. --[[User:Dmitry-kazakov|Dmitry-kazakov]] 07:20, 20 October 2008 (UTC)
 
===System===
Cookies help us deliver our services. By using our services, you agree to our use of cookies.