MCPcopy Create free account
hub / github.com/careercup/ctci / Dummy

Class Dummy

java/Chapter 8/Question8_10/Dummy.java:3–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package Question8_10;
2
3public class Dummy {
4 private String name;
5 private int age;
6 public Dummy(String n, int a) {
7 name = n;
8 age = a;
9 }
10
11 @Override
12 public String toString() {
13 return "(" + name + ", " + age + ")";
14 }
15
16 public int getAge() {
17 return age;
18 }
19
20 public String getName() {
21 return name;
22 }
23}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected