Charles, RB events?

Ruslan Zasukhin sunshine at public.kherson.ua
Mon Feb 2 20:12:38 CST 2004


on 2/2/04 7:48 PM, Charles Yeomans at yeomans at desuetude.com wrote:

> Not quite; events in REALbasic are essentially methods that you declare
> in a class, but implement in a subclass.  Events constitute language
> support for the Template pattern.

Aha, similar to virtual methods of C++.


Charles,

If in RB I have in class A method f1()

In the class B which is subclass of A I override f1()

Will this work as virtual methods in C++?

I.e. 

    pA = new B

    pa.f1() << will be called A::f1() or B::f1() ?


-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list