Debian Codegraph @

test/inheritance/Parent.java

raw
1 package test.inheritance;
2
3 public class Parent {
4 public static final String HELLO_MSG = "Hello from the Parent class!";
5 public static final String OVERLOAD_MSG = "The Parent got ";
6
7 public String inherited()
8 {
9 return HELLO_MSG;
10 }
11
12 public String overloaded(String param)
13 {
14 return OVERLOAD_MSG + param;
15 }
16 }