Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
15
Task/Polymorphism/Sidef/polymorphism-1.sidef
Normal file
15
Task/Polymorphism/Sidef/polymorphism-1.sidef
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
class Point(x=0, y=0) {
|
||||
|
||||
}
|
||||
|
||||
class Circle(x=0, y=0, r=0) {
|
||||
|
||||
}
|
||||
|
||||
func pp(Point obj) {
|
||||
say "Point at #{obj.x},#{obj.y}";
|
||||
}
|
||||
|
||||
func pp(Circle obj) {
|
||||
say "Circle at #{obj.x},#{obj.y} with radius #{obj.r}";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue