J
Jazper Manto
hi
i wrote a class which is deverted from the CollectionBase.
now i tried to overwrite the Clear() method with the keyword "override". the
compiler says then that this is not possible because the base method is not
marked as virtual. however when i have a look at Clear method of the
CollectionBase class in the object browser, the method is marked as "virtual
new". why is it not possible to override this method? and why does the
compiler say, that this method is not virtual?
is my only possibility to shaddow the method in my class by "new"? this is
not my prefered solution because it's dangerous and i'd like to use
polymorphism.
does anybody got a better solution on that?
thanx in advance.
jazper manto
i wrote a class which is deverted from the CollectionBase.
now i tried to overwrite the Clear() method with the keyword "override". the
compiler says then that this is not possible because the base method is not
marked as virtual. however when i have a look at Clear method of the
CollectionBase class in the object browser, the method is marked as "virtual
new". why is it not possible to override this method? and why does the
compiler say, that this method is not virtual?
is my only possibility to shaddow the method in my class by "new"? this is
not my prefered solution because it's dangerous and i'd like to use
polymorphism.
does anybody got a better solution on that?
thanx in advance.
jazper manto