MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / Box

Class Box

Programs/ThisPointerImplicit.java:3–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Program to demonstrate the use of 'this' pointer -
2package thisPointerImplicit;
3class 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}
14public class ThisPointerImplicit {
15 public static void main(String[] args) {
16 // TODO Auto-generated method stub

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected