Answer Posted / rajesh - headstrong
New is not used just to create objects of a class. It is
also used for Shadowing a method in .NET, which means if
Base class and Derived class have methods with same name
and signature, You can precede the derived class method
name with "new" keyword which makes the method a new one
altogether. This is used in retaining old implementation of
a method and you also want to introduce new implementation
for same method in your assembly
| Is This Answer Correct ? | 39 Yes | 3 No |
Post New Answer View All Answers
What is trim in c#?
What to implement on my class Finalize or IDisposable
What is iqueryable in c#?
What is cli in c#?
Explain jagged arrays in c#?
Are tuples immutable c#?
What is c# console application?
What are the new features in c# 2.0?
How we can create an array with non-default values?
What is a thread c#?
Is lazy t thread safe?
What is the default value of string in c#?
What is written in c#?
What does this keyword mean in c#?
Name the method of servicebase class?