Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.94 KB | None | 0 0
  1. /*
  2.   To change this template, choose Tools | Templates
  3.   and open the template in the editor.
  4.  */
  5.  
  6. /**
  7.  
  8.   @author k.ip10
  9.  */
  10. public class Students {
  11.  
  12.     private static int iD, yearGroup;
  13.     private static String studentName, address, tutor;
  14.  
  15.     public static void studentID (int s)
  16.     {
  17.        iD = s;
  18.     }
  19.  
  20.     public static void Name (String n)
  21.     {
  22.         studentName = n;
  23.     }
  24.  
  25.     public static void Address (String a)
  26.     {
  27.      address = a;
  28.  
  29.     }
  30.  
  31.     public static void Tutor (String t)
  32.     {
  33.       tutor = t;
  34.     }
  35.  
  36.     public static void year(int y)
  37.     {
  38.        yearGroup = y;
  39.     }
  40.  
  41.     public static int getID ()
  42.     {
  43.         return iD;
  44.     }
  45.  
  46.     public static String getName()
  47.     {
  48.         return studentName;
  49.     }
  50.  
  51.     public static String getAddress()
  52.     {
  53.         return address;
  54.     }
  55.  
  56.     public static String getTutorGroup()
  57.     {
  58.         return tutor;
  59.     }
  60.  
  61.     public static int getYear()
  62.     {
  63.         return yearGroup;
  64.     }
  65. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement