KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > reflection > OtherChild


1 /***************************************************************************************************
2  * Copyright (c) Jonas Bonér, Alexandre Vasseur. All rights reserved. *
3  * http://aspectwerkz.codehaus.org *
4  * ---------------------------------------------------------------------------------- * The software
5  * in this package is published under the terms of the LGPL license * a copy of which has been
6  * included with this distribution in the license.txt file. *
7  **************************************************************************************************/

8 package test.reflection;
9
10 public class OtherChild extends Super {
11     public int incr(int value) {
12         return (value >= 0) ? (value + 1) : (value - 1);
13     }
14
15     public static int incrStatic(int value) {
16         return (value >= 0) ? (value + 1) : (value - 1);
17     }
18 }
Popular Tags