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 |
How to create class level variable that can be assigned value at the time of declaration and in the constructor alone?
What is dynamic linking?
How to find the current record position in data control?
How to redirect a user to new page in ASP.NET without making a round-trip to the browser?
write a program to create login form
What are window based applications?
Explain something about crystal report in brief?
Hi, I am implementing one windows form. I am inserting some values into ms access. In that table 5 columns there. But I want to insert three columns only. when I am clicking another button then other two values also insert into that table. please help me
How can you pause a timer control?
how barcode create in the report
What is the use of lock keyword in C#?
Which window allows viewing the resources of the servers, such as services, processes and the event log?