So, im in 11th grade and i like to program in java in my free times, my university friend came with this " final problem " that i got stuck thinking how i'd do it , the problem is...
In a news agency many people work with different functions (journalists,
editors, ...), who can be specialized in a certain area (economy, sport, ...) and who can be at different stages of their professional career. A news agency produces content (news, reports, photoreports, advertising, opinion articles, editorials, ...) and which can be of different types. The work does not need to cover all of these aspects.
i created a class for the worker which the journalists photographers and editors extend the class worker and made abstract methods for the content, now my problem is the area
how should i make the area? should i create another abstract class called Area and extend to get the areas of Economy and sport and how i'd introduce it as an object??