Re: a sharde member variable in base class
From: Armin Zingler (az.nospam_at_freenet.de)
Date: 06/15/04
- Next message: Armin Zingler: "Re: Problem with converting code..."
- Previous message: Armin Zingler: "Re: Odd Format issue"
- In reply to: John: "a sharde member variable in base class"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 15 Jun 2004 23:46:19 +0200
"John" <John@discussions.microsoft.com> schrieb
> 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?
No, not e1 and e2 are sharing the same id, but *class* Person has exactly
one ID - even without e1 and e2.
-- Armin How to quote and why: http://www.plig.net/nnq/nquote.html http://www.netmeister.org/news/learn2quote.html
- Next message: Armin Zingler: "Re: Problem with converting code..."
- Previous message: Armin Zingler: "Re: Odd Format issue"
- In reply to: John: "a sharde member variable in base class"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|