|
-
Dec 7th, 2001, 12:44 PM
#1
Thread Starter
Frenzied Member
Persistance Property
Can someone explain the persistance property to me? I understand that VB is not a true OO language like Java, however I am confused about: If I create 2 instances of a class in VB will each instance retain it's properties.
i.e. I have a ball class, the only property is color. I create one instance and set the color to RED and then I create another instance and set the color to BLUE
dim r as new myDLL.MyClass
dim b as new myDLL.MyClass
r.color = "red"
b.color = "blue"
'Will This always print red then blue, or is there a chance that it could print blue then red, or blue and blue, or red and red.
debug.print r.color
debug.print b.color
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|