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 |
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
what is the difference between containership and inheritence?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
write a program for function overloading?
14 Answers HCL, InfoCity, TATA,
what are abstract classes and how they impliment , with example
What is pure oop?
Get me an image implementation program.
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
Explain the concepts involved in Object Oriented programming.
What will happen when the following code is run: int x; while(x<100) { cout<<x; x++; } 1) The computer will output "0123...99" 2) The computer will output "0123...100" 3) The output is undefined
What is overriding vs overloading?
What normal C constructs work differently in C++?