Difference between virtual and abstract methods [duplicate]

This question already has answers here: What is the difference between an abstract method and a virtual method? (28 answers) Closed 4 years ago. Here is some code from MSDN: // compile with: /target:library public class D { public virtual void DoWork(int i) { // Original implementation. } } public abstract class E : D … Read more