where we are using NEW keyword other than create instance
Pls Help me?
Gopal
Answers were Sorted based on User's Feedback
Answer / praveen
we use new keyword to hide the method of base class in
derived classes in method hiding.
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / nikhil
Its is d concept of SHADOWING where base class
functionality is hidden.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / only three
Hiding of base class method (non abstract method) can be done just by giving an implementation in the derived class. The "new" keyword is not necessary. You can add the "new" keyword to prevent a warning message during compilation.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / honey
The keyword 'new' is mainly used to allocate memory for the
associated object.
though you can create an object without using new it is of
no use because no memory will be allocated when new keyword
is not used.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / honey
the keyword 'new' is mainly used to allocate memory for the
associated object.
though you can create an object without using new it is of
no use because no memory will be allocated when new keyword
is not used.
| Is This Answer Correct ? | 0 Yes | 1 No |
What are different options to store state in ASP.NET applications?
Name the property which is used to lock a textbox to enter data?
What is the full form of gac?
Which interface is to be implemented to release the unmanaged resources in an object in Dot Net?
Is typeform free?
What are window applications?
Name the property which of menu cannot be set at run time?
What are different authentication types. How do you retrieve user id in case of windows authentication?
what is acomponent in windows applications?
Which property value of the helpnavigator property will display the index for a specified topic?
What are the new events in textbox that has been included in VB ?
What are windows based applications?