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 unsigned int?
Explain the use of virtual, sealed, override, and abstract method?
When a Static Constructor is called in a Class?
What is string [] args in c#?
What is cts, clr?
What is a static property. Give an example?
What is the .NET collection class that allows an element to be accessed using a unique key?
Explain About Postback
Are c# constructors the same as c++ constructors?
What is the difference between a variable and a literal?
What is the difference between public, static, and void?
What is out in c#?
Why delegates are safe in c#?
What is the default boolean value in c#?
What is routing in c#?