Say I have a class B that extends class A. In class A, I have a variable that I’ve declared to be a function, which gets defined in the constructor. Now, in class B, is there any way to reference that function with the use of super.functionName()?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Extending classes | 0 | 42 | February 22, 2008 | |
| Why super() can be used in Constructor only? | 9 | 108 | July 5, 2008 | |
| SubClass Variables | 0 | 46 | May 9, 2007 | |
| JS Tip of the Day: super() Defines this | 0 | 873 | March 10, 2020 | |
|
Call function in creating class
|
0 | 118 | April 14, 2009 |