Hi,
I have a Class FileDoc
Public Class FileDoc
Inherits BaseClass
Public Sub DeleteDoc()
dim catId as integer = Cat_ID
End Sub
a bunch of properties...
End Class
And I have another Class...
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
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.
Adding an inheritance doesn't transfer the values to the class, only the properties.
Thx in advance