Casting and Explicit Implementation
Explore some intricacies of working with interfaces.
We'll cover the following...
Introduction
In this lesson, we’ll learn about casting and the explicit implementation of interfaces. We’ll use the following interface as an example while exploring different concepts:
Press + to interact
namespace Interfaces{interface INumeric{int ToInt32();long ToInt64();}}
Access modifiers
Notice that interface members don’t have access modifiers. They’re public
by default because the goal of an interface is to be implemented by other ...
Access this course and 1400+ top-rated courses and projects.