Jump to content

Calling grandparent's method and not parent's


Recommended Posts

If I have the following:

class1 extends class0

class2 extends class1

How do I call from class2 a method in class0 which has been over-ridden by class1 without calling the class1's method? Want I want to do is super.super.method();

Thanks.

Link to comment
Share on other sites

Thanks Dave. I think I'm using this in a safe way as it's for my connect_phase(). I want to change some of the connections the parent makes without effecting the grandparent connections. I think this should be a good enough reason?? :-)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...