What is the difference between New Keyword and Override in Oops?

Posted by Sabarimahesh under C# on 4/10/2012 | Points: 10 | Views : 3843 | Status : [Member] | Replies : 9
What is the difference between New Keyword and Override in Oops?

Very Major difference ???

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M



Responses

Posted by: Gudevg on: 4/10/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Sabari,

Refer this link:

http://stackoverflow.com/questions/6576206/what-is-the-difference-between-the-override-and-new-keywords-in-c-sharp

Regards,

Deepakkumar G.

Sabarimahesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Savariya on: 4/10/2012 [Member] Starter | Points: 25

Up
0
Down
Major difference is override is Keyword and new is operator
new is used for creating a new instance of any entity like class structure etc..........
where override is a specifier its simply specified that this method is implemented in base and we are overriding it...........


Thanks

Sabarimahesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 4/10/2012 [Member] Bronze | Points: 25

Up
0
Down
Gudevg

Okey

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Sabarimahesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Sabarimahesh on: 4/10/2012 [Member] Bronze | Points: 25

Up
0
Down
Savariya
Okey.

Life is a Race
Thanks & Regards
By
Sabari Mahesh P M

Sabarimahesh, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Mani5155 on: 4/10/2012 [Member] Starter | Points: 25

Up
0
Down
new used for dynamically instantiate class
override used for dynamic method dispatch

Top Forums Authors
Wed, 18-Oct-2017 Authors
All Time Authors
Jayakumars
6050
Karthikanbarasan
3455
Oswaldlily
3300

Latest members | More ...


(Statistics delayed by 5 minutes)
Advertisements