1.

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) ConstantsI had been asked this question during a job interview.My query is from Data Members topic in portion Class Members & Types of Object Oriented Programming

Answer»

Right answer is (a) Data members

The best 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.



Discussion

No Comment Found

Related InterviewSolutions