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?

Question:
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

Posted Date:-2022-02-03 04:38:14


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!