g.Draw() vs g->Draw()?

Would someone please explain to a beginner what the difference between the two ways of drawing an object g? I have seen both ways used in examples, but I have no managed to understand when one should use the one or the other :confused:


See at ftp://root.cern.ch/root/doc/6ALittleC++.pdf page 83 - the chapter β€œA little C++” from ROOT User’s Guide.

Cheers, Ilka