How does a digital camera operate?

Sunlight reflects of the camera, focused by the glass lens it captures a photo or picture.