File: Parent.java

package info (click to toggle)
axis 1.4-29
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 52,100 kB
  • sloc: java: 129,124; xml: 10,602; jsp: 983; sh: 84; cs: 36; makefile: 18
file content (16 lines) | stat: -rw-r--r-- 353 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package test.inheritance;

public class Parent {
    public static final String HELLO_MSG = "Hello from the Parent class!";
    public static final String OVERLOAD_MSG = "The Parent got ";

    public String inherited()
    {
        return HELLO_MSG;
    }

    public String overloaded(String param)
    {
        return OVERLOAD_MSG + param;
    }
}