crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Provide difference between Virtual vs override vs New
Question Posted on 04 May 2020Home >> DotNet >> C# >> Provide difference between Virtual vs override vs New

Provide difference between Virtual vs override vs New
Below are most important difference between above 3 keywords
(1)Virtual
(1)We use Virtual keyword is used within a set with an override keyword.
(2)Virtual keyword is used to modify a method, property, indexer, or event declared in the base class.

(2)Override
(1)We use Override keyword is used with the virtual keyword.
(2)Event declared in the base class and allow it to be overridden in the derived class

(3)New
(1)We can use New keyword with polymorphism but in the case of method overriding.
(2)The new keyword is used to hide a method, property, indexer, or event of base class into derived class.
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

Simplest definition of partial classes and its rules?

Definition of Tuple class with some examples?

Define Race Condition in cSharp?

C#.Net Reserve Words

can we inherit private class level variables in c#






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap