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 is the abstract class,interface ,its difference with a programatic eg.? hi,recently i went for an interview they ask me what is abstract class ,interface and its difference I said abstract class contain abstact method ,abstract method is a method with no body.Abstract class cannot be instantiated.Abstract class is a base class it required derived class for the implementation of method. Interface is a syntactical contract that all derived class should follow it define properties ,method,events which are known as member of interface. Then They asked me what is the difference between them. I said abstract class interface 1.abstact class can implement method 1.interface cant 2.abstact class can contain constructor, 2.interface cant destructor 3.abstract class cannot support multiple 3.interface support inheritance etc Then they said some different answer I said dont no. Then they ask me when i should make abstract class for an project and when i should make interface. I said if suppose there is two class which must be having method with different logic then we sholud make abstract class. and if suppose we have two class having method .with different logic then we can make interface . Am i correct with my explaination.if not correct me .please provide me that when should we create abstract class and interface and what is difference .please help me

1 Answers  


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

0 Answers  


Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.

13 Answers   Wipro,


What do you mean by overloading?

0 Answers  


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<<k; } //please comment on the output

0 Answers  






What does it mean when someone says I oop?

0 Answers  


How to improve object oriented design skills?

0 Answers  


Explain the advantages of inheritance.

0 Answers   TCS,


features of OOPS

22 Answers   Ness Technologies, Satyam,


design class for linked list and include constructor,destructor,insert option. node of form struct node { int data; struct node &ptr; }

0 Answers  


What is encapsulation c#?

0 Answers  


Can a varargs method be overloaded?

0 Answers  


Categories