What is the term used to indicate the variable and constants of a class?

What is the term used to indicate the variable and constants of a class?
A. Data members
B. Variables of class
C. Data characters
D. Constants
 
Answer: a
Explanation: The variables inside a class are termed data members of the class. It is not a mandatory rule but variables are used to refer to usual variables used in functions or globally. The term is given because the values stored in those variables represent some kind of data related to class.
 

Tìm kiếm

Back
Top