Access information on a script generated class

How can I create/store and access information about my workers from my base class “WorkerClass”?

  public class WorkerClass : MonoBehaviour
    {
        public string name;
        public int age;
        public float spawnTime;
    }
    
    public class createNewWorker : WorkerClass
    {
        WorkerClass newWorker = new WorkerClass();
        newWorker.name = ListOfWorkersNames[Random.Range[0,ListOfWorkersNames.Count];
        newWorker.age = Random.Range(18,65);
        newWorker.spawnTime = Random.Range(0,600);
    }

This just sets up information about one newWorker... but I need many of them! 
So I need to store the created information then loop it so it creates another worker and so on.

Can I make a different name for every new class created?
And how can I access them?

say I got 35 workers how can I find the name of worker number 21?

What you re looking is a constructor within the WorkerClass, basically your createNewWorker class can be turned into the constructor function within WorkerClass.

Ex.

public class WorkerClass : MonoBehaviour
     {
         public string name;
         public int age;
         public float spawnTime;
		 
		 public WorkerClass()
		 {
			 name = ListOfWorkersNames[Random.Range[0,ListOfWorkersNames.Count];
			 age = Random.Range(18,65);
			 spawmTime = Random.Range(0,600);
			 
		 }
     }

As for how to get unique information on any number of different employees you could use a list for an undefined number of them or an array if you know the count.
Use a for loop and create a new worker for each iteration adding it to the list/array

Ex.

for(int i =0; i < numWorkers; i++)
{
         workerArray *= new WorkerClass();*

}
Hopefully that helps!