File: Parent.java

package info (click to toggle)
axis 1.4-16.2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 51,876 kB
  • sloc: java: 129,119; xml: 10,594; jsp: 983; sh: 84; cs: 36; makefile: 19
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;
    }
}