| 1 | package pw.skills; |
| 2 | |
| 3 | public class App { |
| 4 | public int a = 1; |
| 5 | protected int b = 2; |
| 6 | int c = 3; |
| 7 | private int d = 4; |
| 8 | |
| 9 | void printFromApp(){ |
| 10 | System.out.println("Printing within class"); |
| 11 | System.out.println(a); |
| 12 | System.out.println(b); |
| 13 | System.out.println(c); |
| 14 | System.out.println(d); |
| 15 | } |
| 16 | |
| 17 | public static void main(String[] args) { |
| 18 | App obj = new App(); |
| 19 | obj.printFromApp(); |
| 20 | A obj2 = new A(); |
| 21 | obj2.printFromA(); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | class A{ |
| 26 | void printFromA(){ |
nothing calls this directly
no outgoing calls
no test coverage detected