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 difference between var dynamic and object in c#?
Write a console application and implement the ternary operator to decide whether the age a user entered after being prompted is allowed to vote or not(given that only citizens between 18 and 120 years only inclusive can vote). Use exception handling for non-numerical input.
Why do we need to serialize data?
What is the difference between hashtable and dictionary?
What is a c# delegate?
Why we use methods in c#?
What is boxing & unboxing?
What is c# windows form application?
Explain the top reason to use c# language?
What is jagged array?
Why do we need abstraction in c#?
How many types of delegates are there in c#?
What is as keyword in c#?
What are the collections in c#?
What is difference between constants and readonly in c#?