Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

144
Views
Accessing variables of primary class from secondary class

I have a quick question. I want to split up a big class into smaller classes to make it more manageable, but the smaller classes need to know about a couple of the variables in the bigger class in order to operate.

Should I be storing a reference to the primary class in every secondary class? This is what I have been doing, but I'm not sure if this is bad design and I have trouble finding any information about alternative techniques.

Any feedback is appreciated.

about 4 years ago · Santiago Gelvez
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!