daily pastebin goal
68%
SHARE
TWEET

itp120

a guest Dec 7th, 2017 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //this is the superclass for the preschool student groups
  2.  
  3. //class delcaration statement for the superclass
  4. public class PreSchoolStudent{
  5.  
  6.    //variable declaration statement
  7.    
  8.    protected String group;
  9.    protected String teacher;
  10.    protected String stuName;
  11.    protected int stuAge;
  12.    protected String list;
  13.      
  14.    
  15.   //set method for setting the group  
  16.    
  17.    public void setGroup(String g){
  18.    
  19.       group = g;
  20.   }
  21.  
  22.   //get method for getting the group
  23.  
  24.   public String getGroup() {
  25.  
  26.    return group;
  27.   }
  28.    
  29.   //set method for setting the teacher name
  30.    
  31.   public void setTeacher(String t){
  32.       teacher = t;
  33.   }
  34.  
  35.   //get method for getting the teacher name
  36.  
  37.   public String getTeacher() {
  38.       return teacher;
  39.   }
  40.  
  41.   //set method for setting a student's name
  42.  
  43.   public void setStudent(String n){
  44.       stuName = n;
  45.   }
  46.  
  47.   //get method for obtaining the student's name
  48.  
  49.   public String getStudent() {
  50.       return stuName;
  51.   }
  52.  
  53.   //set method for setting the student's age
  54.    
  55.   public void setAge(int a){
  56.       stuAge = a;
  57.   }
  58.  
  59.   //get method for obtaining the student's age
  60.  
  61.   public int getAge (){
  62.       return stuAge;
  63.   }
  64.  
  65.   //set method for setting the materials' list for a group
  66.   public void setList(String l){
  67.  
  68.       list = l;
  69.   }
  70.  
  71.   //get method for obtaining materials' list needed by a group
  72.  
  73.   public String getList(){
  74.      
  75.       return list;
  76.   }
  77.  
  78.   public void setGroup(String g, String t, String n, int a, String l){
  79.    
  80.       group = g;
  81.       teacher = t;
  82.       stuName = n;
  83.       stuAge = a;
  84.       list = l;
  85.    }
  86. }//end of class
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top