What is the relationship between the Canvas class and the Graphics class | Eklavya Online

What is the relationship between the Canvas class and the Graphics class

A Canvas object provides access to a Graphics object via its paint() method