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

Answers were Sorted based on User's Feedback



What is the use of New Keyword..

Answer / 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

What is the use of New Keyword..

Answer / senthil kumar

The keyword New is used to create the object for the
classes.using that object all the methods and properties
are invoked.

Is This Answer Correct ?    30 Yes 1 No

What is the use of New Keyword..

Answer / ajay kumar

To allocate the memory to an object.

Is This Answer Correct ?    22 Yes 5 No

What is the use of New Keyword..

Answer / kalidoss

Allocate or create dynamic memory to an object during the
run time not compile time.

Is This Answer Correct ?    11 Yes 1 No

What is the use of New Keyword..

Answer / sangita patra

the new keyword is basically used in reference types to
create a object and allocate memory to it.and it can also
be used in value types to invoke the default constructor.

Is This Answer Correct ?    7 Yes 0 No

What is the use of New Keyword..

Answer / new

To allocate memory

Is This Answer Correct ?    3 Yes 0 No

What is the use of New Keyword..

Answer / deepak bankar

The new keyword is used to an object of a class.And also it
is used to hide Methods and variables

Is This Answer Correct ?    3 Yes 1 No

What is the use of New Keyword..

Answer / sudhanshu shekhar

The new keyword when applied to a derived
Type,method,property,event,constant or field indicates that
the member has no relationship to a similar member that may
exist in base class.

Is This Answer Correct ?    2 Yes 1 No

What is the use of New Keyword..

Answer / sanjay maurya

the new keyword is basically used in reference types to
create a object and allocate memory to it.

an oter use of new keyword method overriding it override
the base class method from dirved class method when base
class method not define as vertual

Is This Answer Correct ?    2 Yes 1 No

What is the use of New Keyword..

Answer / hafiz usman majeed

as modern programming languages use this keyword
extesively, it used to assign an object the memory on heap.
and thus physically implements the class for that
particular object.

Is This Answer Correct ?    4 Yes 4 No

Post New Answer

More C Sharp Interview Questions

in a town the percentage of total men is 52. the percentage of total literacy is 48. if total percentage of literate men is 35 of total population. write a program to find out the total no of illiterate men and women.

3 Answers   HCL,


what is output parameter and parameter array?

1 Answers   TCS,


What is the difference between static and private constructor in c#?

0 Answers  


how to implement singelton in C# & its uses?

1 Answers   TCS,


What are the advantages of generics in c#?

0 Answers  


Which is the base class in c#?

0 Answers  


What is a three-tier application.

0 Answers   Siebel,


How to parse a date time string?

0 Answers  


What is difference between "as" and "is" keyword?

1 Answers  


Why do we Need of static class in c#?

0 Answers   NA,


What is the usage of OLE?

0 Answers   Wipro,


Why is hashset faster?

0 Answers  


Categories