title: Is it good practice to blank out inherited functionality that will not be used?
body: <p>I'm wondering if I should change the software architecture of one of my projects.</p>
  
  <p>I'm developing software for a project where two sides (in fact a host and a device) use shared code. That helps because shared data, e.g. enums can be stored in one central place.</p>
  
  <p>I'm working with what we call a "channel" to transfer data between device and host. Each channel has to be implemented on device and host side. We have different kinds of channels, ordinary ones and special channels which transfer measurement data.</p>
  
  <p>My current solution has the shared code in an abstract base class. From there on code is split between the two sides. As it has turned out there are a few cases when we would have shared code but we can't share it, we have to implement it on each side.</p>
  
  <p>The principle of DRY (don't repeat yourself) says that you shouldn't have code twice.</p>
  
  <p>My thought was now to concatenate the functionality of e.g. the abstract measurement channel on the device side and the host side in an abstract class with shared code. That means though that once we create an actual class for either the device or the host side for that channel we have to hide the functionality that is used by the other side. </p>
  
  <p>Is this an acceptable thing to do:</p>
  
  <pre><code>public abstract class ChannelAbstract
  {
      protected void ChannelAbstractMethodUsedByDeviceSide()    {  }
      protected void ChannelAbstractMethodUsedByHostSide()      {  }
  }
  
  public abstract class MeasurementChannelAbstract : ChannelAbstract
  {
      protected void MeasurementChannelAbstractMethodUsedByDeviceSide()   {  }
      protected void MeasurementChannelAbstractMethodUsedByHostSide()     {  }
  }
  
  public class DeviceMeasurementChannel : MeasurementChannelAbstract
  {
      public new void MeasurementChannelAbstractMethodUsedByDeviceSide()
      {
          base.MeasurementChannelAbstractMethodUsedByDeviceSide();
      }
  
      public new void ChannelAbstractMethodUsedByDeviceSide()
      {
          base.ChannelAbstractMethodUsedByDeviceSide();
      }
  }
  
  public class HostMeasurementChannel : MeasurementChannelAbstract
  {
      public new void MeasurementChannelAbstractMethodUsedByHostSide()
      {
          base.MeasurementChannelAbstractMethodUsedByHostSide();
      }
  
      public new void ChannelAbstractMethodUsedByHostSide()
      {
          base.ChannelAbstractMethodUsedByHostSide();
      }
  }
  </code></pre>
  
  <p>Now, <code>DeviceMeasurementChannel</code> is only using the functionality for the device side from <code>MeasurementChannelAbstract</code>. By declaring all methods/members of MeasurementChannelAbstract <code>protected</code> you have to use the <code>new</code> keyword to enable that functionality to be accessed from the outside.</p>
  
  <p>Is that acceptable or are there any pitfalls, caveats, etc. that could arise later when using the code?</p>