root/trunk/myweb/src/mypackage/Labor.java

Revision 51, 281 bytes (checked in by yabuki, 2 years ago)
  • Property svn:mime-type set to text/plain
Line 
1package mypackage;
2
3public class Labor extends Person {
4  int salary;
5
6  @Override
7  public void run() {
8    System.out.println("RUN RUN!");
9  }
10  public int getSalary() {
11    return salary;
12  }
13  public void setSalary(int salary) {
14    this.salary = salary;
15  }
16}
Note: See TracBrowser for help on using the browser.