G
Guest
Is this variable shared among all of the instances of the base class and derived classes?
Class Person
Shared Id as String
Shared Function GetId() as String
Return Id
End Function
End Class
Class Emp1 : Inherits Person
End Class
Class Emp2 : Inherits Person
End Class
..
..
..
Dim e1 as New Emp1
Dim e2 as new Emp2
'Are e1 and e2 sharing the same id?
Thanks.
Class Person
Shared Id as String
Shared Function GetId() as String
Return Id
End Function
End Class
Class Emp1 : Inherits Person
End Class
Class Emp2 : Inherits Person
End Class
..
..
..
Dim e1 as New Emp1
Dim e2 as new Emp2
'Are e1 and e2 sharing the same id?
Thanks.