SHARE
TWEET

Untitled

a guest Apr 24th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. interface StarWarsCharacter {
  2.   name: String!
  3. }
  4.  
  5. type Jedi implements StarWarsCharacter {
  6.   name: String!
  7.   lightsaberColor: String
  8. }
  9.  
  10. type Rebel implements StarWarsCharacter {
  11.   name: String!
  12.   isPilot: Boolean
  13. }
  14.  
  15. type Sith implements StarWarsCharacter {
  16.   name: String!
  17.   master: Sith
  18. }
  19.  
  20. // OBS: todas os types que implementam a interface devem declarar os atributos listados na interface
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top