Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Test {
- private int points;
- public Test(int points) {
- this.points = points;
- public void setPoints(int points) {
- if((points>= 0) && (points<= 9))
- || (points> 0) && (points<= 45)) {
- this.points= points;
- }
- public class 1 extends Test {
- public 1 (int points) {
- super(points);
- }
- }
- public class 2 extends Test {
- public 2 (int points) {
- super(points);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement