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[8];...