Advertisement
jsbsan

canela

Oct 31st, 2013
1,259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GAMBAS 0.31 KB | None | 0 0
  1. ' Gambas class file
  2.  
  3. Inherits CondimentoDecorador
  4.  
  5. Private beb As Bebida
  6.  
  7. Public Sub _new(b As Bebida)
  8.  
  9.   beb = b
  10.  
  11. End
  12.  
  13. Public Function getDescripcion() As String
  14.  
  15.   Return beb.getDescripcion() & ", Canela"
  16.  
  17. End
  18.  
  19. Public Function cost() As Single
  20.  
  21.   Return 0.20 + beb.cost()
  22.  
  23. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement