Does anyone know why I'm not getting the actual integers for out put... I get WorkOut@1261281792. I know it is something small but can't figure it out. here are my 3 classes:
public class WorkOut1 {
public static void main(String [] args) {
Exercise tuesWorkout = new Exercise (10, 50);
PullUps tuesPullUps = new PullUps (10, 50);
System.out.println("This Tuesday our workout will consist of this many minutes and reps:");
System.out.println(tuesWorkout);
}
}
PullUps Class
public class PullUps extends Exercise {
private static int barHeight;
public PullUps (int min, int reps) {
super(min, reps);
barHeight = 6;
}
}
Exercise class
public class Exercise {
private static int min;
private static int reps;
//Constructor
public Exercise(int min,int reps) {
this.min = min;
this.reps = reps;
}// end constructor
public static int howManyMin() {
return min;
}//end method howmanyMin()
public static int howManyReps() {
return reps;
}//end method howmanyReps()
}//end class
System.out.println(tuesWorkout.howManyReps()).