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 decimal in c#?
What are instance fields in c#?
Can an array be null c#?
What is difference between dictionary and hashtable?
Is int reference type c#?
Explain how to implement delegates in c#.net
Does c# have a 'throws' clause?
How you will create satellite assemblies?
How to Install uninstall assemblies into GAC?
What are the types of inheritance in c#?
What is the difference between // comments, /* */ comments and /// comments?
How long will it take to learn c#?
State whether it is true to test a Web service you must create a windows application or Web application to consume this service or not?
explain the features of static/shared classes.
Is there a way to force garbage collection?