The purpose of writing this article is simple; to provide a simple and fresh demonstration of the basic differences between these three frequently used and confusing keywords in C# with some reference example. This article is purely for the beginner in C#.

Outlines

Overview

In this article I'll explain how virtual, override and new keywords vary by taking some set of examples respectively (some sort of functionality).
Finally there will be some key points to remember about all these 3 keywords.

Introduction

This introductory part will provide a brief introduction of all these 3 keywords. So here they are.

Demo Example

Key Points

I am providing some key points about these keywords by taking a reference of method overloading and overriding concepts, since these keywords are used in these mechanisms.

Virtual and Override

New

Conclusion

So did you like it, I hope you so!

Well I tried to provide just a brief sketch of these keywords, that are very necessary for a beginner in C# as well as in OOP. If you have a good understaind of OOP then you can take any object-oriented language in your pocket.

So just go through OOP first and then C# and if you are facing any problem then feel free to ping or message me.

Happy coding, Cheers!