File: Child.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-- 350 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 Child extends Parent {
    public static final String HELLO_MSG = "Hello from the Child class";
    public static final String OVERLOAD_MSG = "The Child got ";

    public String normal()
    {
        return HELLO_MSG;
    }

    public String overloaded(int i)
    {
        return OVERLOAD_MSG + i;
    }
}