Guest User

Untitled

a guest
Oct 21st, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. package javaapplication1;
  2.  
  3. /**
  4. * The class that represents tricky bug.
  5. * @author dmitriy
  6. */
  7. public class Main {
  8.  
  9. /**
  10. * @param args the command line arguments
  11. */
  12. public static void main(String[] args) {
  13. MyClass obj = new MyClass();
  14. System.out.println(obj.hideRealAmountOfBugs());
  15. System.out.println(obj.hideRealAmountOfBugs2());
  16. }
  17. }
  18.  
  19. class MyClass {
  20. private int allBugs = 10;
  21. int hideRealAmountOfBugs() {
  22. int аllBugs = 20;
  23. return allBugs;
  24. }
  25.  
  26. int hideRealAmountOfBugs2() {
  27. int allBugs = 20;
  28. return allBugs;
  29. }
  30. }
Add Comment
Please, Sign In to add comment