title: Class Inheriting from Another Class
body: <p>I have a Class FileDoc</p>
  
  <pre><code>Public Class FileDoc
  Inherits BaseClass
  
  Public Sub DeleteDoc()
  
  dim catId as integer = Cat_ID
  
  End Sub
  
      a bunch of properties...
  End Class
  </code></pre>
  
  <p>And I have another Class...</p>
  
  <pre><code>Public Class BaseClass
  
  Private _Cat_ID As Integer
  Public Property Cat_ID() As Integer
      Get
          Return _Cat_ID
      End Get
      Set(ByVal value As Integer)
          _Cat_ID = value
          AssignAllInfo()
      End Set
  End Property
  
  Private _Docs As List(Of FileDoc)
  Public Property Docs() As List(Of FileDoc)
      Get
          Return _Docs
      End Get
      Set(ByVal value As List(Of FileDoc))
          _Docs = value
      End Set
  End Property
  </code></pre>
  
  <p>My question is, since FileDoc comes from the BaseClass, how can I access values from the BaseClass when I'm coding in the FileDoc Class. Like my example in sub DeleteDoc(), I'm trying to access the Cat_ID of the Base Class which this FileDoc belongs to.</p>
  
  <p>Adding an inheritance doesn't transfer the values to the class, only the properties.</p>
  
  <p>Thx in advance</p>