32 lines
370 B
Markdown
32 lines
370 B
Markdown
```haskell
|
|
add :: (Int -> Int) -> Int
|
|
add x y = x+y
|
|
```
|
|
|
|
|
|
```python
|
|
|
|
class Number:
|
|
# Some implementation
|
|
|
|
class Float(Number):
|
|
# Some implentation
|
|
|
|
class Integer(Number):
|
|
# Some implementation
|
|
|
|
|
|
def add(numA:Number, numB:Number) -> Number:
|
|
|
|
```
|
|
|
|
|
|
```python
|
|
|
|
class MyClass:
|
|
def __eq__(self):
|
|
# MyClass :: Eq
|
|
def __str__(self)
|
|
# MyClass :: Show
|
|
def __
|
|
``` |