Created
November 13, 2018 16:13
-
-
Save dahabit/3a624dbd1de7160946d3a6625db5bccc 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 Slot<Circle>(); | |
circleSlot.insert(new Circle()); | |
var squareSlot = new Slot<Square>(); | |
squareSlot.insert(new Square()); | |
} | |
class Circle {} | |
class Square {} | |
class Slot<T>{ | |
insert (T shape){ | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment