![](/s/cache/70/77/70771714b1d3b6ca2b0d33caca31d4f8.png)
0
Выполнено
Design Patterns: association question
hi,
I have one quick question: in page 22 the following example appears
class Professor is field Student student //... method teach(Course c) is // ... this.student.remember(c.getKnowledge())
you mention that:
If someone changes the getKnowledge method of the Course class (alters its name, or adds some required parameters, etc.) our code will break. This is called a dependency.
We can say for sure that the Student class is also a dependency for the Professor
just to clarify, another way to express it could it be?
- Professor is dependant of Course ?
- Professor is dependant of Student ?
sorry: english is not my primary language that's why I need to clarify it that way, it's correct?
Сервис поддержки клиентов работает на платформе UserEcho
Yeah, that's correct (with a minor correction):
Professor is dependent on Course
Professor is dependent on Student