Hi everyone,
I'm having a small problem using objects in VB.NET.
I've created a class "Shop" and one of its properties is a number which
I've named "intNumber" (Integer).
I've created several objects of the class Shop and everythink works
fine. What I'm trying to do is to modify my class in such a manner that
when a create a new object, the property "intNumber" has already a
value. Using a constructor you can do this but I would like to give
each object a different number, starting at 1 or 0, increasing 1 each
time a new object has been created...
The first object has automatically number 1 assigned to "intNumber" ,
the second number 2, etc...
I know this is possible but have forgotten how to do this ...
Many thanks
John