/Users/e1813314/Desktop/IA Final Submission 000307-0066/Product/Athletics Awards Netbeans Project/src/iacomsci_allan/JV.java |
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 iacomsci_allan; 7 8 /** 9 * 10 * @author 13314 11 */ 12 //Entends the super class Player as JV is a subclass 13 public class JV extends Player { 14 15 private String position = "Not set yet"; 16 17 //Constructing the data type 18 public JV(String n, String l, int grade, String position) { 19 //Satisfying the abstraction for the super class 20 super(n, l, grade); 21 this.position = position; 22 } 23 24 //Gets for the JV data type 25 public String getPosition() { 26 return position; 27 } 28 } 29