Explain the below diagram with examples from object oriented programming:
Expert Answer
where object is taken into focus.
The major pillars of object oriented programming are:
1)Abstraction
2)Polymorphism
3)Inheritance
4)Encapsulation
Modelling is an approach to test any physical entity before implementation in order to reduce complexity.
Dynamic modelling is related to the switching of the object in its state over the time.
The main concepts behind Dynamic modelling are:
1)State
2)Transition
3)Event
4)Action
5)Concurrency of transitions.
Merits of Dynamic Modelling:
1) A model provides a medium for conceptualization and exchange of ideas in a precise and uncertain shape.
2) A model is an abstraction for the purpose of understanding it before designing it.
3) Therefore a model is basically an abstraction which hides the non-relavant characteristics of a system and
show those properties which are relavant for understanding it.
Looking at the example shown in the above figure, the transition from standing horse to Riding state of horse takes place when the person starts riding and then jumps to cross the hurdles and after that it stops running.
Similarly, the final state is reached, when he reaches the destination. These series of occurrences
can be termed as events: Get_runHorse, Get_jumpHorse and Reach_Destination.