Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Model;
- public class OffensiveLine extends FootballPlayer {
- /**FootballPlayer center;
- FootballPlayer offensiveGuard;
- FootballPlayer offensiveTackle;
- *
- * This is the requirement for the class, but can't get it to work??
- * No errors when I run with Strings...
- */
- String center;
- String offensiveGuard;
- String offensiveTackle;
- OffensiveLine(){
- center = "Center";
- offensiveGuard = "Offensive Guard";
- offensiveTackle = "Offensive Tackle";
- }
- OffensiveLine(String a, Height b, int c, String d, String e, int f, String g, String pos1, String pos2, String pos3){
- super(a, b, c, d, e, f, g);
- center = pos1;
- offensiveGuard = pos2;
- offensiveTackle = pos3;
- }
- //Not sure really where to go from here.. Below is just guess work based on what I have managed so far in the other files...
- String setPostion1(){
- return center;
- }
- String setPosition2(){
- return offensiveGuard;
- }
- String setPosition3(){
- return offensiveGuard;
- }
- //This isn't right.. but I don't know how to call each different weight into here...
- public int averageWeight(){
- int average;
- average = weight + weight + weight / 3;
- return average;
- }
- @Override
- String getInfo(){
- return super.getInfo() + getPosition();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement