180. Static Memory

Question.12

A class has a static method:

class Math {
public:
   static constexpr float PI = 3.14159f;
   static float deg_to_rad(float d) { return d * PI / 180.0f; }
};

float rad = Math::deg_to_rad(90);

Why can deg_to_rad be called without creating a Math object?

Need Help? Refer to the Quick Guide below

Select Answer