I am developing my own project for the practice. I am having a great deal of difficulty conceptualizing the classes I want. The scenario is that of 2 countries, each capable of producing 2 goods, using 2 factors of production.
Specifically, Lower Mongolia and Upper Mongolia have certain amounts of workers (labor) and machines (capital) with which each can produce some combination of guns and butter. Each good has a selling price, a labor use requirement, and a capital use requirement.
I made classes of the goods with their 3 members. I instantiated with the countries. I decided to use only 1 factor for simplicity. This didn't work because of duplicate variables for each good. By that I mean, the term Lower_Mongolia.price was the same for both guns and butter.
I am considered making a base class called country, having labor and capital as members, with derived classes for the goods, having price, labor use, and capital use, as members. However, I can't find good examples of how to instantiate the country names of Upper Mongolia and Lower Mongolia in the main() section. I still wind up with duplicate variables like Lower_Mongolia.price for both guns and butter.
Is there a way to achieve the organization I want using classes?