Link to home
Start Free TrialLog in
Avatar of aminkeith
aminkeith

asked on

The "super" reference

I am trying to utilize inheritance to use variables from a parent class in a child class. So that I don't have to repeat everything, I am simply using the " super(parameters) ; " statement. But when I do this I keep getting an error that says, "error: can not reference variable before supertype constructor has been called."

I don't know what this is telling me to do.

I'm using jgrasp writing java.
SOLUTION
Avatar of dpearson
dpearson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of aminkeith
aminkeith

ASKER

Thanks all of you guys. I actually figured out what my problem was. I think I had them set to private instead of protected. Thanks anyway.
You're welcome.
Thanx 4 axxepting