24. Inline Functions

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?

Need Help? Refer to the Quick Guide below

Select Answer