Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the use of New Keyword

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


Please Help Members By Posting Answers For Below Questions

What is unsigned int?

876


Explain the use of virtual, sealed, override, and abstract method?

863


When a Static Constructor is called in a Class?

1023


What is string [] args in c#?

938


What is cts, clr?

826


What is a static property. Give an example?

935


What is the .NET collection class that allows an element to be accessed using a unique key?

1100


Explain About Postback

917


Are c# constructors the same as c++ constructors?

933


What is the difference between a variable and a literal?

1040


What is the difference between public, static, and void?

904


What is out in c#?

912


Why delegates are safe in c#?

861


What is the default boolean value in c#?

940


What is routing in c#?

890