i am writing a code for workers in inheritance .
there is nothing wrong with code but i have a question..
if i have 8 workers i will create an array of 8 objects:
worker object = new worker;
My question here ..
if i don't know the number of workers what i will do ??
and thanks in advance.