Advertisement
jsbsan

trabajador

Dec 5th, 2013
2,655
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GAMBAS 0.28 KB | None | 0 0
  1. ' Gambas class file
  2.  
  3. Private sueldo As Float
  4.  
  5. Public Sub setsueldo(cantidad As Float)
  6.  
  7.   sueldo = cantidad
  8.  
  9. End
  10.  
  11. Public Function getSueldo() As Float
  12.  
  13.   Return sueldo
  14.  
  15. End
  16.  
  17. Public Sub cobrar()
  18.  
  19.   Print "He cobrado....mi sueldo: " & Str$(sueldo)
  20.  
  21. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement