A bit more C# Goodness

Sigh,It’s not getting any easier.

Been reading about inheritance a bit and how to use the ‘virtual’ keyword to show that someone who subclasses a class can ‘override’ a method. For example

public virtual void Display()

means that if someone subclasses the class containing this method they can do their own implementation of ‘Display’.

Deriving, or subclassing, seems obvious… for example this code says it all…

public class Cat : Animal

But none of this is helping me code yet godamnit…

ooo, forgot to say… Refactoring-Extract Method is a pretty smart IDE feature. Now I’m struggling with why the damned hell everything is private or protected or private protected.