What is the syntax to implement an interface?
- Use the colon (:) symbol and implement all members.
class Car : IDriveable
public int Speed { get; set; }
public void Drive() => Console.WriteLine("Car is driving");
class Car : IDriveable
public int Speed { get; set; }
public void Drive() => Console.WriteLine("Car is driving");