Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. public class Test {
  2.  
  3. private int points;
  4. public Test(int points) {
  5. this.points = points;
  6.  
  7. public void setPoints(int points) {
  8. if((points>= 0) && (points<= 9))
  9. || (points> 0) && (points<= 45)) {
  10. this.points= points;
  11. }
  12.  
  13. public class 1 extends Test {
  14. public 1 (int points) {
  15. super(points);
  16. }
  17. }
  18.  
  19. public class 2 extends Test {
  20. public 2 (int points) {
  21. super(points);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement