OK, I don't want to leave out the C# developers from this VB.NET OOP example that Raymondposted recently. So here is one way to accomplish this code in C#.
John Papa
Hi, I'm John Papa. I author this blog, create courses for Pluralsight, and work in Developer Relations. I am a professional storyteller, I contribute to OSS, and I'm a Web technologist