| 1 | // Program to demonstrate the use of 'this' pointer - |
| 2 | package thisPointerImplicit; |
| 3 | class Box { |
| 4 | int l, h, b; |
| 5 | Box(int l, int b, int h) { |
| 6 | this.l = l; |
| 7 | this.b = b; |
| 8 | this.h = h; |
| 9 | } |
| 10 | int vol() { |
| 11 | return l * b * h; |
| 12 | } |
| 13 | } |
| 14 | public class ThisPointerImplicit { |
| 15 | public static void main(String[] args) { |
| 16 | // TODO Auto-generated method stub |
nothing calls this directly
no outgoing calls
no test coverage detected