Last active
November 13, 2018 15:57
-
-
Save dahabit/db28d776b7cb9a7dfb67160b36485afd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
var circleSlot = new CircleSlot(); | |
circleSlot.insert(new Circle()); | |
var squareSlot = new SquareSlot(); | |
squareSlot.insert(new Square()); | |
} | |
class Circle {} | |
class Square {} | |
class SquareSlot{ | |
insert (Square sqareSlot){ | |
} | |
} | |
class CircleSlot{ | |
insert (Circle circleSlot){ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment