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

This program numbers the lines found in a text file. Write a program that reads text from a file and outputs each line preceded by a line number. Print the line number right-adjusted in a field of 3 spaces. Follow the line number with a colon, then one space, then the text of the line. You should get a character at a time and write code to ignore leading blanks on each line. You may assume that the lines are short enough to fit within a line on the screen. Otherwise, allow default printer or screen output behavior if the line is too long (i.e., wrap or truncate). A somewhat harder version determines the number of spaces needed in the field for the line numbers by counting lines before processing the lines of the file. This version of the program should insert a new line after the last complete word that will fit within a 72-character line.

0 Answers  


i ahve v low % in 12th n BSC which is aroun 50 coz science was imposed on me......nw m doin MCA n my aggregate in above 74%,what shud i say if asked about low previous percentage??????

4 Answers  


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

0 Answers  


Given two strings like x=?hello? and y=?open?, remove any character from string x which is also used in string y, thus making the result x=?hll?.

13 Answers   IBM,


Advantage and disadvantage of routing in telecom sector

0 Answers  






Where is pseudocode used?

0 Answers  


what's the basic's in dot net

0 Answers   informatics,


c++ program to swap the objects of two different classes

0 Answers  


What do you mean by Encapsulation?

0 Answers   Ittiam Systems,


What is new keyword in oops?

0 Answers  


What is an advantage of polymorphism?

0 Answers  


Can java compiler skips any statement during compilation time?

0 Answers  


Categories