title: VB.NET Abstract Property
body: <p>I have an abstract "GridBase" class with two types of derived classes "DetailGrid" and "HeaderGrid". </p>
  
  <p>Respectively, one is comprised of "DetailRow" objects and the other "HeaderRow" objects. Both of those inherit from a "RowBase" abstract class.</p>
  
  <p>What I am trying to do is the following:</p>
  
  <pre><code>Public MustInherit Class GridBase
      Private pRows As List(Of RowBase)
  
      Public ReadOnly Property Rows As List(Of RowBase)
          Get
              Return pRows
          End Get
      End Property
  End Class
  
  Public Class DetailGrid
      Inherits GridBase
  End Class
  </code></pre>
  
  <p>In this scenario, I want DetailGrid.Rows to return a list of DetailRow. I want HeaderRow.Rows to return a list of HeaderRow. Am I on the right track with this or should the Rows property not be included in the GridBase class?</p>