access methods of grandparent class
Hi Guys,
I wanted to know how to access the methods of grandparent class from the child class (when those methods in child class are overridden) using super keyword. Please help.
Re: access methods of grandparent class
You can't, and if you want to do this, it suggests that perhaps a re-design is in order.
Re: access methods of grandparent class
Did you not like the other answers you received In your Cross post?
Re: access methods of grandparent class
I had this doubt as I was attending a Java training class, a student came up with this question, so we were asked to find an answer for the same. As 'super' is used to get the methods of parent class, how can super be manipulated to get the methods of grandparent class.
Re: access methods of grandparent class
Quote:
Originally Posted by
doWhile
I wish you warned me in advance so I wouldn't have wasted my time answering a question that's already been answered. Original poster, is your goal to go on as many do-not-help lists as possible?
Re: access methods of grandparent class
Quote:
Originally Posted by
Fubarable
I wish you warned me in advance so I wouldn't have wasted my time answering a question that's already been answered. Original poster, is your goal to go on as many do-not-help lists as possible?
I needed an answer, so thought someone will know about it. And find some way in doing the same.
Re: access methods of grandparent class
Quote:
Originally Posted by
shruthi1
I needed an answer, so thought someone will know about it. And find some way in doing the same.
That's fine, but next time let folks know in advance about any and all cross-posts. There's no sense in re-hashing that which has already been hashed. We are all volunteers and value our time. We like to help folks who respect this fact.
Re: access methods of grandparent class
Quote:
Originally Posted by
Fubarable
That's fine, but next time let folks know in advance about any and all cross-posts. There's no sense in re-hashing that which has already been hashed. We are all volunteers and value our time. We like to help folks who respect this fact.
I am very sorry about that