Question.4
A developer defines a method inside a class body:
class LED { public: void on() { *port_reg |= pin_mask; } void off(); // Declared here, defined elsewhere };
Does the compiler treat on() as having the inline specifier?
on()
Select Answer
Yes
No
Yes, only if the compiler decides to inline it