Polymorphism: Difference between revisions

Content added Content deleted
(Changed formatting, removed "TODO" entries. *every* language is "TODO")
Line 1: Line 1:
{{task}}
{{task}}


Create two classes Point(x,y) and Circle(x,y,r) with a polymorphic function print, accessors for (x,y,r), copy constructor, assignment and destructor and every possible default constructors
<div class="messagebox">
Create two classes Point(x,y) and Circle(x,y,r)
with a polymorphic function print, accessors for (x,y,r),
copy constructor, assignment and destructor
and every possible default constructors
</div>

==[[Ada]]==
==[[Ada]]==
[[Category:Ada]]
[[Category:Ada]]
Line 757: Line 751:
}
}
}
}

==[[D|D TODO]]==
[[Category:D]]
'''Compiler:''' [[DMD]],[[GDC]]

==[[Forth|Forth TODO]]==
[[Category:Forth]]

==[[Fortran|Fortran TODO]]==
[[Category:Fortran]]


==[[Java]]==
==[[Java]]==
Line 805: Line 789:
}
}
}
}

==[[JavaScript|JavaScript TODO]]==
[[Category:JavaScript]]


==[[Perl|Perl TODO]]==
[[Category:Perl]]
'''Interpeter:''' [[Perl]]


==[[PHP|PHP TODO]]==
[[Category:PHP]]