Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Student <K, V> extends Human<K, V> {
- String speciality;
- public Student (K id, V name, String speciality) {
- this.setId(id);
- this.setName(name);
- this.speciality = speciality;
- }
- public String toString(){
- return getName().toString() + " (" + speciality + ")";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement