Comments on: C# Intermediate – Inheritance https://code-maze.com/csharp-inheritance/ Learn. Code. Succeed. Thu, 27 Aug 2020 10:37:43 +0000 hourly 1 https://wordpress.org/?v=6.7.5 By: Toby Jacobs https://code-maze.com/csharp-inheritance/#comment-434 Wed, 10 Oct 2018 23:46:00 +0000 https://code-maze.com/?p=4632#comment-434 I could be totally barking up the wrong tree here… But I was always under the impression that the new keyword with methods didn’t really hide it, even. It literally means you get two methods. Which one gets called then depends not on the object but on the type of the field in which it is stored.

I’ve found a few use cases for new, mostly when dealing with generic versions of base classes where the return type was changing for a method… But that’s both niche and uncorroborated – others might well see that code and think it very whiffy…

]]>