So, I'm basically trying to define a base class person that will contain universal
information, including name, address, birth date, gender and identification
(student, worker etc). Derive from this class the following classes:
Student
Worker
Student_worker (derived from student and worker)
I need to add variable school to student and company to worker class.
In the main function I have to create a structure that will be able to hold all types of objects. Letting user enter several objects of different type (create those objects dynamically) and sort the structure by gender and by type.