Duration: 19 minutes
Summary: In this video, here we discuss the use of the implicit and explicit conversion operators. We use these conversion operators to convert between types that are not directly related through interfaces or inheritance. To illustrate, we create a Bedroom class and an Office class. We add normal methods to the class like ToString() and the constructors. In the Office class we add an operator that helps us convert a Bedroom into an office. In Main(), we create a Bedroom object, then we cast it to an Office.
Methodology of the development of example: Good coding standard and simplified design.
Technology Used: C# 4.0
Keywords: C#, System, implicit, operator, static, override, Console.