John Lennon (in 1974) - "I wrote this at a recording session. It was tied together around the guitar riff that opens it."
Paul McCartney (in 1994) - "The song itself was more John's than mine. We sat down and co-wrote it with John's original idea. John sang it, I'm on harmonies."