Advertisement
Denis_s

HW3 Student

Sep 23rd, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.33 KB | None | 0 0
  1. public class Student <K, V> extends Human<K, V> {
  2.  
  3.     String speciality;
  4.  
  5.     public Student (K id, V name, String speciality) {
  6.         this.setId(id);
  7.         this.setName(name);
  8.         this.speciality = speciality;
  9.     }
  10.  
  11.     public String toString(){
  12.         return getName().toString() + " (" + speciality + ")";
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement