I've done some searching but cannot seem to find an exact match on this question. If I've missed it, please redirect me.
In Delphi / Object Pascal you have two concepts:
- Class Method - allows you to invoke the method without requiring a class instances. However these methods still allow overriding in derived class (thus in some way still carrying some class information).
- Static Method - marks the method as static - thus no longer allowing virtual / override keywords - no class information / no inheritance "knowledge"
*You may correct me on the above.
Question: What is the equivalent of Delphi's class method (not static) in C#? I'd like to be able to declare a method that I can invoke without having an instance of the class - but I would like to be able to mark the base method as virtual and override it in derived classes.