There are two classes named TEACHER and STUDENTS.When TEACHER goes out of the class,STUDENTS should make noise.The scemario best befits to the concept of "association of two classes behavior-where one class watches another class for a behavior change and triggers an action from inside itself based on the behavior change".Which pattern of design it could be?
1. Singleton patter
2.Template pattern
3. Observer pattern
4.None
Answer:3
Posted Date:-2022-02-03 11:38:14