Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. anAtom := NewAtom(1, 1, 255)
  2. // We can only access the methods defined within the interface
  3. anAtom.GetColor() // gut!
  4. anAtom.GetPosition() // gut!
  5. anAtom.GetSomething() // wrong! an error you will get when you try run it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement