New vs. Override

A very good one to explain the difference between New and Override.

My feeling is, ‘New’ acts like a partial override, or not very stable override. In another word, it will call the base method under some circumstance you didn’t expect.

One typical example is, as shown in the post I linked in the beginning of this post, when you try to do the casting back to base class, the one in your ‘New’ method will completely back to the hidden one, while the override never do.

I will post more when I found more about this.


2 thoughts on “New vs. Override

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s