1.

How many private member functions are allowed in a class?(a) Only 1(b) Only 7(c) Only 255(d) As many as requiredI had been asked this question in my homework.I would like to ask this question from Private Member Functions in division Member Functions & its Types of Object Oriented Programming

Answer»

Correct option is (d) As MANY as required

The explanation is: There are no conditions applied on the NUMBER of private member functions that can be declared in a class. THOUGH the system may restrict use of too many functions depending on MEMORY.



Discussion

No Comment Found

Related InterviewSolutions