nammidd

Untitled

Oct 31st, 2016
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. public class Human
  2. {
  3. private const int basehp = 20;
  4.  
  5. public class Male : Human
  6. {
  7. basehp += 20%;
  8. }
  9.  
  10. public class Female : Human
  11. {
  12. basehp -= 20%;
  13. }
  14. }
  15. public class NotHuman
  16. {
  17. private const int basehp 222;
  18.  
  19. public class Male : NotHuman
  20. {
  21. basehp += 20%;
  22. }
  23.  
  24. public class Female : NotHuman
  25. {
  26. basehp -= 20%;
  27. }
  28. }
Add Comment
Please, Sign In to add comment