We all know that, in C#, interfaces don't have any method implementations; they only contain the method signature. In C# 8, however, interfaces are allowed to have implemented methods. These methods can be overridden by classes if they need to be. Interface methods will also have access to modifiers, such as public, virtual, protected, or internal. By default, the access level is set to virtual unless it is fixed as sealed or private.
There is another important thing to note. No attributes or fields are yet allowed in an interface. This means that interface methods can't use any instance fields in the methods. Interface methods can take parameters as input and use those, but not instance variables. Let's take a look at an example of an interface method:
using System;
namespace ConsoleApp7
{
class Program
{
static void...