Member functions _____________________

Member functions _____________________
A. Must be defined inside class body
B. Can be defined inside class body or outside
C. Must be defined outside the class body
D. Can be defined in another class
 
Answer: c
Explanation: The functions definitions can be given inside or outside the body of class. If defined inside, general syntax is used. If defined outside then the class name followed by scope resolution operator and then function name must be given for the definition.
 

Tìm kiếm

Back
Top