Hi All,
I am trying to override a method declared "public virtual void" of a
different DLL.
Creating a derived class and declaring it as "public override void"
doesn't work. Where am I wrong?
Thanks so much,
Alberto 5 1505
Hello, in**@devdept.com!
iI am trying to override a method declared "public virtual void" of a
idifferent DLL.
iCreating a derived class and declaring it as "public override void"
idoesn't work. Where am I wrong?
How it doesn't work? You get compile time-error?
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Hi Vadym,
No, it simply go throuth the base class method and not on derived one.
Damn....
Can you explain me why?
Thanks so much,
Alberto
Vadym Stetsyak wrote:
Hello, in**@devdept.com!
iI am trying to override a method declared "public virtual void" of a
idifferent DLL.
iCreating a derived class and declaring it as "public override void"
idoesn't work. Where am I wrong?
How it doesn't work? You get compile time-error?
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
Are you sure you create an instance of the derived class and not using still
the ancestor class ?
--
Patrice
<in**@devdept.coma écrit dans le message de news: 11**********************@d34g2000cwd.googlegroups. com...
Hi Vadym,
No, it simply go throuth the base class method and not on derived one.
Damn....
Can you explain me why?
Thanks so much,
Alberto
Vadym Stetsyak wrote:
>Hello, in**@devdept.com!
iI am trying to override a method declared "public virtual void" of a idifferent DLL.
iCreating a derived class and declaring it as "public override void" idoesn't work. Where am I wrong?
How it doesn't work? You get compile time-error?
-- Regards, Vadym Stetsyak www: http://vadmyst.blogspot.com
oh yes patrick,
You are right !!!
I forgot to change the new declaration and add the DERIVED class
name...
Thanks so much !!!
Patrice wrote:
Are you sure you create an instance of the derived class and not using still
the ancestor class ?
--
Patrice
<in**@devdept.coma écrit dans le message de news: 11**********************@d34g2000cwd.googlegroups. com...
Hi Vadym,
No, it simply go throuth the base class method and not on derived one.
Damn....
Can you explain me why?
Thanks so much,
Alberto
Vadym Stetsyak wrote:
Hello, in**@devdept.com!
iI am trying to override a method declared "public virtual void" ofa
idifferent DLL.
iCreating a derived class and declaring it as "public override void"
idoesn't work. Where am I wrong?
How it doesn't work? You get compile time-error?
--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: James Marshall |
last post by:
I'm writing a library where I want to override document.write(), but for
all document objects; thus, I want to put it in the prototype. I tried
Document.prototype.write= my_doc_write ;
but it...
|
by: muscha |
last post by:
I don't get it. What's the main differences between overriding a base
class's methods vs. hiding them?
Thanks,
/m
|
by: news.microsoft.com |
last post by:
Hi,
It is possible to override a non virtual method with the "new" keyword
So how is this different from specifying a method as virtual then
providing the override keyword?
Is there any...
|
by: ORi |
last post by:
Hi all !
There's a question I've been bothering for a while:
I'm actually developing architectural frameworks for application
developing and I think virtual methods, although needed because of...
|
by: Bob Weiner |
last post by:
What is the purpose of hiding intead of overriding a method? I have googled
the question but haven't found anything that makes any sense of it.
In the code below, the only difference is that...
|
by: Amin Sobati |
last post by:
Hi,
I have two classes. Class2 inhertis Class1:
-----------------------------
Public Class Class1
Public Overridable Sub MySub()
End Sub
End Class
Public Class Class2
|
by: JohnR |
last post by:
From reading the documentation, this should be a relatively easy thing. I
have an arraylist of custom class instances which I want to search with
an"indexof" where I'm passing an instance if the...
|
by: bryanbabula |
last post by:
I have a question about overriding i was wondering if anyone could
help me with, or even suggesting a better/different way. I have no
idea if this can even be done or not.
I was wondering if there...
|
by: ramadeviirrigireddy |
last post by:
Can anyone tell me whether the return type of the method will also be considered when you are overriding a method? what i mean exactly is whether the return type can be different when you are...
|
by: r035198x |
last post by:
The Object class has five non final methods namely equals, hashCode, toString, clone, and finalize.
These were designed to be overridden according to specific general contracts. Other classes that...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |