Albert Balagueró
|
Monday 18 July 2011 6:08:36 am
Hi,
I would like to know if is it possible that when user creates a new object of a class, this object gets the value of a class attribute automatically. I mean: the user creates an object that have "number" attribute, "title" attribute and "descripction" attribute, is there a way to give the object's "number" attribute automatically a value? The first created, must be 001 (for example), the second, 002; the third, 003; this attribute will increase +1 at each new creation... Thaks.
|