What is a Stereotype in Unified modelling language?And What are the primary class stereotypes?.I need clear explanation using diagrams or real world scenario.
A stereotype is a mechanism you can use to categorize your classes. You can create new stereotypes and categorize as you like
Think if you want to simply find all of the forms in the model. In that case you can create a stereotype called form and assign all of your view classes which consists with a form, this stereotype. To find your forms later You would just need to look for the classes with that stereotype.
There are three primary class stereotype in UML.
- Boundry class
- Entity class
- control class
They provide the interface to a user or another System(ie. Interface to an actor)
They are needed to perform task internal to the system, reflect a real world entity.
Serve as the glue between boundary elements and entity elements, implementing the logic required to manage the various elements and their interactions.