Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package javaapplication1;
- /**
- * The class that represents tricky bug.
- * @author dmitriy
- */
- public class Main {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- MyClass obj = new MyClass();
- System.out.println(obj.hideRealAmountOfBugs());
- System.out.println(obj.hideRealAmountOfBugs2());
- }
- }
- class MyClass {
- private int allBugs = 10;
- int hideRealAmountOfBugs() {
- int аllBugs = 20;
- return allBugs;
- }
- int hideRealAmountOfBugs2() {
- int allBugs = 20;
- return allBugs;
- }
- }
Add Comment
Please, Sign In to add comment