Advertisement
Guest User

Untitled

a guest
Aug 5th, 2015
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. public class Student {
  2. String name;
  3. int score;
  4. int skippedLessons;
  5.  
  6. public Student(String name, int score, int skippedLessons) {
  7.  
  8. this.name = name;
  9. this.score = score;
  10. this.skippedLessons = skippedLessons;
  11. }
  12.  
  13. public String getName() {
  14. return name;
  15. }
  16.  
  17. public int getScore() {
  18. return score;
  19. }
  20.  
  21. public int getSkippedLessons() {
  22. return skippedLessons;
  23. }
  24.  
  25. public boolean isReadyForExam(){
  26. return score >= 10;
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement