How to avoid empty implementation in abstract class while implementing an interface?

Posted by kannan-engr09 on Stack Overflow See other posts from Stack Overflow or by kannan-engr09
Published on 2010-05-28T11:11:42Z Indexed on 2010/05/28 11:22 UTC
Read the original article Hit count: 460

Filed under:
public interface IMyInterface
{
  int A
  {get; set; } 
  string S
  {get; set; } 
}
public abstract class MyAbs : IMyInterface
{ }
public class ConcreteClass : MyAbs
{
 /* Implementation of IMyInterface*/
}

Is it possible to omit the empty implementation in an abstract class as above? If so, how? why?

© Stack Overflow or respective owner

Related posts about c#2.0