what is new modifier in C#

Answers were Sorted based on User's Feedback



what is new modifier in C#..

Answer / pratyaya kumar ghosh

C# allow redefinition of inherited methods in the derived
classes at the cost of hiding the inherited ones using new
modifier.

Is This Answer Correct ?    7 Yes 2 No

what is new modifier in C#..

Answer / anna

Mr.kiran this site is not for sending "hi" type nessages.
please dont misuse the site.
thanq

Is This Answer Correct ?    10 Yes 5 No

what is new modifier in C#..

Answer / shiraz abbas rizvi

When used as a modifier, the new keyword explicitly hides a
member inherited from a base class. Hiding an inherited
member means that the derived version of the member
replaces the base-class version.

Is This Answer Correct ?    6 Yes 1 No

what is new modifier in C#..

Answer / r.r.bharti

It is an error to use both new and override on the same
member, as the two modifiers have mutually exclusive
meanings. Using new creates a new member with the same name
and causes the original member to become hidden, while
override extends the implementation for an inherited member.

Using the new modifier in a declaration that does not hide
an inherited member generates a warning.

Is This Answer Correct ?    0 Yes 0 No

what is new modifier in C#..

Answer / raj

What is meaning of "Explicitly hides a
member inherited from a base class"?

I mean what exactly trying to say please please tell me.

Is This Answer Correct ?    0 Yes 0 No

what is new modifier in C#..

Answer / viswanath

hi Rahul,
what u did, are u not misusued?

Is This Answer Correct ?    4 Yes 6 No

what is new modifier in C#..

Answer / rahul p.v

HEI ANNA
This site is not for commenting 'bout others answers.u were
the one who misused the site by commenting!!!!

thnx

Is This Answer Correct ?    3 Yes 8 No

what is new modifier in C#..

Answer / kiran

hi

Is This Answer Correct ?    1 Yes 20 No

Post New Answer

More OOPS Interview Questions

What are constructors in oop?

0 Answers  


How do you explain polymorphism?

0 Answers  


Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?

4 Answers   EA Electronic Arts,


The expansion of GNU

3 Answers  


Tell us about yourself.

47 Answers   ABB, Amazon, Fidelity, Flextronics, Franklin Templeton, HCL, Hexaware, IBM, Impetus, Infosys, Reliance, Rofous, Silgate, Sutherland, TCS, Thomson Reuters, Virtusa, Wipro,






What is abstrac class?where is it use?

2 Answers  


write a program to find 2 power of a 5digit number with out using big int and exponent ?

0 Answers  


What is encapsulation oop?

0 Answers  


What makes a language oop?

0 Answers  


what is runtime polymorphism? For the 5 marks.

3 Answers  


When is a memory allocated to a class?

11 Answers  


When you define a integer it gets stored in which data structure?(Stack or a heap)

2 Answers   emc2,


Categories