|
-
Apr 30th, 2004, 03:08 AM
#1
Thread Starter
Frenzied Member
How to design this class?
I have a class called CBike
Now I need a class that will act as a collection of bikes..
I want to be able to use for... each and also to access bikes by
mybikecollection.item(3).GetName <-- where getname is a property of CBike
Which framework class should I inherit so that I can do all this? I need one that implements ICollection, and I want it to be pretty fast...
Is it enough to make it like this:
class CVehicleCOllection : inherits Collection
end class
os what enlse is needed?
I need a collection that can store items of a specific type! If I make them an arraylist I need to convert from object to CBike.. I don't want to do that..
kind regards
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
|