Advertisement
jsbsan

claseintervalorValoracion

Oct 30th, 2013
1,524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GAMBAS 0.53 KB | None | 0 0
  1. ' Gambas class file
  2.  
  3. Inherits Intervalo
  4.  
  5. Public malisimo As String = "malisimo"
  6. Public malo As String = "malo"
  7. Public normal As String = "normal"
  8. Public bueno As String = "bueno"
  9. Public galactico As String = "galactico"
  10.  
  11.  
  12. Public Sub _new()
  13.  
  14. 'creo los datos de los intervalos
  15. Super.add(malisimo, -9999, 0)
  16. Super.add(malo, 0, 10)
  17. Super.add(normal, 10, 20)
  18. Super.add(bueno, 20, 40)
  19. Super.add(galactico, 40, 9999)
  20.  
  21.  
  22.  
  23. End
  24.  
  25. Public Function valorar(puntos As Integer) As String
  26.  
  27.   Return Super.responder(puntos)
  28.  
  29. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement