They are also called as surrogates and provide the same interface as its server object and have no special
functionality.
15. What is cloning?
Ans.: It is a technique that returns a copy of itself.
16. Difference between static model and dynamic model?
Ans.: Static model is used to specify structure of the objects present in the problem domain.
Dynamic model means representing the object interactions during run time.
17. Themes of object oriented programming
Ans.: Objects,messages,class,inheritance,polymorphism.
18. Example of active and passive object
Ans.: Active object- Client
Passive object- Server
19. What is generalization and types of generalization?
Ans.: It is used to represent a class,which captures the common states of object of different classess.
G.Booch model
Rumbaugh's model
Jacobson's model
20. what is null object?
Ans.: It is an object of some class that is used to indicate that a real object of that class does not exist.
21. What an accessor?
Ans.: It is a class operation that does not modify the state of an object.
22. What is an adaptor class?
Ans.: It is a class that has no functionality of its own.
It is also called as wrapper class.