Flirting is a way to get someone’s attention. It lets the people know that someone is interested in them. Usually, flirting takes place with people that you do not know. Flirting should only take place when the people are single. It would not be considered to be okay if someone is flirting with another person who is married or in a relationship with someone else.
That might make the other person feel funny or uncomfortable. In a setting where people typically get to know one another would be the best time to flirt with someone since this place is known for that and expected. Flirting with co-workers or even friends might cause problems if the other person doesn’t reciprocate those feelings.