what is new modifier in C#
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 class and example?
Is html an oop?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What do you mean by stack program? Get me an example stack program?
What is destructor in oop?
How to execute business logic for only once ..?even though user clicks submit button multiple times by mistake..? (i disabled JavaScript)
What is polymorphism what is it for and how is it used?
What is ambiguity in c++
Program to read a comment string
WAP find square root of any number (without using sqrt() )?
What is the concept of object oriented program?
what are three tenets of object orinted Systems?Why they call like that ? Please answer me. Advance thanks.