Nguythang

Student

Feb 23rd, 2016
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.89 KB | None | 0 0
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package ass;
  7.  
  8. /**
  9.  *
  10.  * @author NgT
  11.  */
  12. public class Student {
  13.  
  14.     public int Id;
  15.     public String name;
  16.     public float score;
  17.  
  18.     public Student() {
  19.     }
  20.  
  21.     public Student(int Id, String name, float score) {
  22.         this.Id = Id;
  23.         this.name = name;
  24.         this.score = score;
  25.     }
  26.  
  27.     public void setId(int Id) {
  28.         this.Id = Id;
  29.     }
  30.  
  31.     public void setName(String name) {
  32.         this.name = name;
  33.     }
  34.  
  35.     public void setScore(float score) {
  36.         this.score = score;
  37.     }
  38.  
  39.     public int getId() {
  40.         return Id;
  41.     }
  42.  
  43.     public String getName() {
  44.         return name;
  45.     }
  46.  
  47.     public float getScore() {
  48.         return score;
  49.     }
  50. }
Add Comment
Please, Sign In to add comment