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 |
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.
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??????
write a program to find 2 power of a 5digit number with out using big int and exponent ?
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?.
Advantage and disadvantage of routing in telecom sector
Where is pseudocode used?
what's the basic's in dot net
c++ program to swap the objects of two different classes
What do you mean by Encapsulation?
What is new keyword in oops?
What is an advantage of polymorphism?
Can java compiler skips any statement during compilation time?