Advertisement
igovasconcelos

Untitled

Aug 25th, 2020
952
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Object subclass: 'Veiculo'
  2.     instanceVariables: 'passageiros'
  3.  
  4. passengers
  5.    ^passageiros
  6.  
  7. addPassenger: pPessoa
  8.    passengers add: pPessoa
  9.  
  10. removePassenger: pPessoa
  11.    passengers remove: pPessoa
  12.  
  13. init
  14.    passageiros := OrderedCollection new.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement