Rep. Alexandria Ocasio-Cortez said that her time in the service industry prepared her for Washington's political warfare.

"When you work in the service industry as a woman, you are harassed all the time. It’s just part of your job," she said in an interview with The Hollywood Reporter.

Ocasio-Cortez worked as a bartender in New York before her history-making election to Congress.

She worked a number of jobs, including in the service industry, to help support her mother after she graduated from Boston University in 2011.

Rep. Alexandria Ocasio-Cortez said that she was prepared to face abuse in Washington because she was "harassed all the time" in her previous job as a bartender.

Ocasio-Cortez worked in a New York City bar until late 2017, before her victory over a 10-term incumbent congressman in New York in June 2018, which laid the foundations for her to become the youngest-ever woman elected to Congress.

She told The Hollywood Reporter that this work prepared her for the nature of politics in Washington.

"When you work in the service industry as a woman, you are harassed all the time. It’s just part of your job," she said.

Read more: Alexandria Ocasio-Cortez was the only Democrat to vote 'no' on a bill to reopen the government because it would fund ICE

"You’re often spoken to in a way that is very classist. You are treated like a servant. So you really get used to navigating those dynamics."

Jeff Stein, Washington Post political reporter, shared a photo in June 2018 which shows Ocasio-Cortez working as a bartender in New York City's Union Square the previous year.

—Jeff Stein (@JStein_WaPo) June 27, 2018 Ocasio-Cortez worked a number of jobs after she graduated from Boston University in 2011, waitressing and bartending along with taking a position at non-profit in order to help her mother, who cleaned houses and drove buses. Her father passed away while she was in college. —Jeff Stein (@JStein_WaPo) June 27, 2018 " data-e2e-name="embed-container" data-media-container="embed" style="box-sizing: border-box; margin: 20px 0px; color: #111516; font-family: TiemposTextWeb-Regular, Georgia, Times, serif; font-size: 20px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff; text-decoration-style: initial; text-decoration-color: initial;">

As a self-described Democratic socialist, Ocasio-Cortez has been pushing her platform, including a Green Deal and Medicare for All, and faced heavy criticism from conservative heavyweights in response.

She also told The Hollywood Reporter that she was "not sure" why President Donald Trump had never targeted her on social media.

Read more: Alexandria Ocasio-Cortez got a seat on another House committee, which has Trump and Russia in its sights

Her theory was that the president realized her skill at leveraging social media, and doesn't want to take her on.

"I think as nuts as this guy is, one thing he does have an expertise in is media and branding and marketing. And I think, I don’t know, maybe he thinks that he’s met his match."