How do I automacially assign a variable in constructor while creating objects
<p>Let's say we just have a simple object Person with int ID which identifies it. How can I give new ID value (+1) for each new instance of Person but in constructor of that class Person? (I use no DB for this)</p>
