[Solved] C# how to access variables without creating an intance?
[ad_1] If you want more than one economy, then you need a property that keeps track of which economy each worker belongs to. Then you can just use that reference to subtract the wage from the correct economy: public class Worker { public Economy InEconomy { get; private set; } public int Wage { get; … Read more