Being optimistic means to have a positive expectation for what is to come in the future. So, optimism is a tendency towards a positive outlook and a positive expectation in one's life.
This mental attitude of a person reflects an individual's approach towards the events of life. This optimism is the positive attitude and hope for a better future or outcome of an individual's actions/ future. Thus, we can rightly say that optimism is a tendency toward a positive outlook and positive expectations.
The type of theory applies in the given scenario is the
attachment theory. This type of theory is revolve into a group of people or an
individual related with emotional and physical attachments in which it is seen
in the given scenario above.