Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- anAtom := NewAtom(1, 1, 255)
- // We can only access the methods defined within the interface
- anAtom.GetColor() // gut!
- anAtom.GetPosition() // gut!
- anAtom.GetSomething() // wrong! an error you will get when you try run it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement