Pregunta de entrevista

Entrevista para Software Developer

-Buenos Aires


Solve a modelling problem with classes (Object Oriented, Software Engineering). The problem was comprised of three classes: Person, Student and Teacher. Studentt and Teacher inherited from Person, but a student could also be a teacher in a college environment, so this create a problem.


Respuesta de la entrevista

1 respuesta


Create a role class which composes part of the Person class. The Role class would have each and every possible instance of every role (Teacher, Student) that that specific Person instance has.

Anónimo en

Agregar respuestas o comentarios

Para comentar esto, Inicia sesión o regístrate.