public interface IService { void Add(); void Mul(); } //First Case public abstract class ServiceOne : IService { public abstract void Add(); public abstract void Mul(); } //Second Case public abstract class ServiceTwo : IService { public void Add(){} public void Mul(){} } public class S1 : ServiceOne { public override void Add(){} public override void Mul() {} } public class S2 : ServiceTwo { }
What are basic benefits of doing that duplication of code in interface and abstract class.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)