static member function vs non static member function (Rectangle::getStaticData() vs rec.getData())