InterviewSolution
| 1. |
What Is The Purpose Of Using The Super Keyword? |
|
Answer» It is used to refer to an object’s immediate ancestor. Take for example Super:: wf_myfunc (myarg1, myarg2). This example calls the ancestor function wf_myfunc (presumably the descendant ALSO has a function CALLED wf_myfunc). This example must be part of a SCRIPT or function in the descendent window, not one of the window's controls. It is used to refer to an object’s immediate ancestor. Take for example Super:: wf_myfunc (myarg1, myarg2). This example calls the ancestor function wf_myfunc (presumably the descendant also has a function called wf_myfunc). This example must be part of a script or function in the descendent window, not one of the window's controls. |
|