It is an adjective of noun optimism. It is an attitude or way of living a life. Optimism is a positive attitude. We are unaware of what might happen in the next moment.