In my first class in college for a music theory course, the first assignment was "memorize A" (440Hz). Surprisingly, after several weeks of playing the tone and matching it verbally, I did learn A. Everything else from there is knowing intervals relative to A (like, C is a minor 3rd above A, or 3 half steps).
Edit: there are tricks you can use for memorizing the intervals, too, like "Here Comes the Bride" is a perfect 4th, "My Bonnie Lies Over the Ocean" is a major 6th, and so on. There's a whole list at https://www.earmaster.com/products/free-tools/interval-song-....