In my program, I replace the class method with my function.
Override Method AAA In Class BBB With MyFnc
Sometimes as the program progresses, I need to restore the standard implementation of the method. Can this be done ?
#include <hbclass.ch>
class Base
Method Func1() INLINE QOut("func1 of Base")
endclass
class Derived INHERIT Base
Method Func1() INLINE QOut("func1 of Derived")
endclass
proc main()
LOCAL obj := Derived():New()
obj:Func1()
obj:Super:Func1()
func1 of Derived
func1 of Base
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 51 guests