Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

221
Vistas
A private interface for classes in a module/hierarchy, like a family of classes?

I was wondering if it was at all possible to construct a family of classes which know each other's secrets but have secrets for the outside world.

Some classes could share a common interface, allowing them to call each other and be nested in arbitrary ways, but keep this interface private so that the rest of the codebase can't possibly depend on / mess with it.

Is that a thing?

The only way I can think of to make it work is to actually have only one class with some branching inside, and I don't like this idea one bit. To my knowledge, there is no way to achieve this effect via inheritance.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda