Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
|
|
@ -1,4 +0,0 @@
|
|||
class animal =
|
||||
object (self)
|
||||
(*functions go here...*)
|
||||
end
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
class dog =
|
||||
object (self)
|
||||
inherit animal
|
||||
(*functions go here...*)
|
||||
end
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
class cat =
|
||||
object (self)
|
||||
inherit animal
|
||||
(*functions go here...*)
|
||||
end
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
class lab =
|
||||
object (self)
|
||||
inherit dog
|
||||
(*functions go here...*)
|
||||
end
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
class collie =
|
||||
object (self)
|
||||
inherit dog
|
||||
(*functions go here...*)
|
||||
end
|
||||
24
Task/Inheritance-Single/OCaml/inheritance-single.ocaml
Normal file
24
Task/Inheritance-Single/OCaml/inheritance-single.ocaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
class animal =
|
||||
object (self)
|
||||
(*functions go here...*)
|
||||
end
|
||||
class dog =
|
||||
object (self)
|
||||
inherit animal
|
||||
(*functions go here...*)
|
||||
end
|
||||
class cat =
|
||||
object (self)
|
||||
inherit animal
|
||||
(*functions go here...*)
|
||||
end
|
||||
class lab =
|
||||
object (self)
|
||||
inherit dog
|
||||
(*functions go here...*)
|
||||
end
|
||||
class collie =
|
||||
object (self)
|
||||
inherit dog
|
||||
(*functions go here...*)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue