search for: mysubclass

Displaying 1 result from an estimated 1 matches for "mysubclass".

Did you mean: issubclass
2009 Nov 23
1
OOP with Encapsulated Class Definitions
...o space rather than speed, hence the unorthodox method despatch, however again, there are other possibilities... Here is an example of inheritance: > MySuperClass = function (...) { MySuperClass = function (x) .$x = x mymethod = function () cat (.$x, "\n") mclass () } > MySubClass = function (...) { MySubClass = function (y) super (y) mclass (super="MySuperClass") } > myobj = MySubClass (10) > myobj~mymethod () 10 kind regards Charlotte Maia (first time poster)