Well now it starts to get complicated.
What if I later add a class for Inches and a class for Kilometers? And I want to be able to compare any length with any other length?
Is this possible? Or am I going off in the wrong direction here?
C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).