1.

How many public members are allowed in a class?(a) Only 1(b) At most 7(c) Exactly 3(d) As many as requiredThe question was posed to me in class test.Question is from Public Member Functions in chapter Member Functions & its Types of Object Oriented Programming

Answer»

The CORRECT answer is (d) As many as required

Explanation: The NUMBER of PUBLIC members that can be defined in a class doesn’t have any limit. Though the programmer should not use too many functions, instead should use another class for more specific functions to reduce the READABILITY complexity.



Discussion

No Comment Found

Related InterviewSolutions