Download
100% FREE
Office Document APIs for .NET
Online: 472
Home
Articles
Interviews
Forums
For Beginners
Popular Questions
ITIL Career Advice
PMP Career Advice
Career Advices
Codes
Videos
ASP.NET
ASP.NET MVC
Android Intel XDK
Sql Server
AngularJS
Bootstrap
Backbone.JS
MongoDB
LESS (CSS)
jQuery
WPF
WWF
SSIS
LightSwitch
Tutorials
News
ASP.NET MVC
|
Be Interview Ready
|
Top Performers
|
DNF MVP
|
Top Posts
|
Winners
|
Subscribe
|
Catalogs
Welcome Guest !
Register
Login
Home
>
Forums
>
C#
>
Loading ...
What is The Use of Method Hiding In C# although we having method overriding ? [Resolved]
Posted by
Kasani007
under
C#
on 1/12/2017 |
Points: 10
| Views : 1900 | Status :
[Member]
| Replies : 1
Write New Post
|
Search Forums
|
Resolved Posts
|
Un Answered Posts
|
Forums Home
What is The Use of Method Hiding In C# although we having method overriding ?
[Resolved]
Reply
|
Reply with Attachment
Alert Moderator
Responses
Posted by:
Sheonarayan
on: 1/12/2017
[Administrator]
HonoraryPlatinum
|
Points: 50
0
Method hiding as the name suggest, hides the parent class method but doesn't override it (replace it). This means that if you create the instance of child class and cast to parent class and call that method you can call parent class method.
So method hiding simply is creating a new version of the method keeping the existing one in the parent method. Overriding is completely replacing the current method and declaring a fresh method.
Read more about this
http://www.dotnetfunda.com/forums/show/16965/what-is-difference-between-method-hiding-and-shadowing-in-csharp
.
Thanks
Regards,
Sheo Narayan
http://www.dotnetfunda.com
Kasani007
, if this helps please
login
to
Mark As Answer
. |
Alert Moderator
Login to post response
Latest Posts
How to handle 302 status (Moved temporalily)
(1)
Failed to find a valid digest in the 'integrity' attribute
(1)
Angular Template parse error occured while rendering 3rd party website in ASP.NET
(0)
How to display 2 tables in a single line in 2 div tag
(1)
I Want to Do a multiple selector on ASPnet MVC
(0)
Get all materials of parent and its children in an array except for few
(0)
Container in Media Query
(0)
How to send keys to specified app with title?
(1)
More ...