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.
I don't know what this is telling me to do.
I'm using jgrasp writing java.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're welcome.
Thanx 4 axxepting
Thanx 4 axxepting
ASKER