⟩ Explain all elements of a State-chart diagram.
a. Initial State: The first or the default state the object is in. It is denoted by a solid circle.
b. State: All the states an object can go in are mentioned in this. It is represented by a rectangle with rounded edges.
c. Transitions: depicted by arrow from the source state to destination state.
d. Final State: Depicts the end of the. It is shown by a bull's eye symbol.