Which among the following best describes the inline member functions?

Which among the following best describes the inline member functions?
A. Functions defined inside the class only
B. Functions with keyword inline only
C. Functions defined outside the class
D. Functions defined inside the class or with the keyword inline
 
Answer: d
Explanation: The functions which are defined with the keyword inline or are defined inside the class are treated to be inline functions. Definitions inside the class are implicitly made inline if none of the complex statements are used in the definition.
 

Tìm kiếm

Back
Top