Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Calculadora

0

39
Vistas
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.

6 months ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar empleo Planes Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2023 PeakU Inc. All Rights Reserved.