Hi Friends,
i have written simple application to perform insert , update and delete in my small application . and in that application i have written person class . i just want to understand the inheritance . so that i should implement in any of my application inheritance sharing of properties and method in other userdefined class . how it can be possible . and i have used mypersons dictionary to fill all the records in the datagridview. let me know please .how should i use great feature inheritance . any help would be highly appreciated .Code:Public Class Person Private m_Key As String Private m_FirstName As String Private m_LastName As String Private m_Street As String Private m_City As String Public Property Key() As String Get Key = m_Key End Get Set(ByVal Value As String) m_Key = Value End Set End Property Public Property FirstName() As String Get FirstName = m_FirstName End Get Set(ByVal Value As String) m_FirstName = Value End Set End Property Public Property LastName() As String Get LastName = m_LastName End Get Set(ByVal Value As String) m_LastName = Value End Set End Property Public Property City() As String Get City = m_City End Get Set(ByVal Value As String) m_City = Value End Set End Property Public Property Street() As String Get Street = m_Street End Get Set(ByVal Value As String) m_Street = Value End Set End Property End Class




Reply With Quote