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?

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

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


More MCQS Questions and answers

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!