ICSE Class 10 Computer Applications
Question 10 of 19
Constructors — Question 10
Back to all questions 10
Question Question 10
Constructor functions obey the usual access rules. What does this statement mean ?
Constructor functions obey the usual access rules. It means that a private or protected constructor is not available to the non-member functions.
With a private or protected constructor, one cannot create an object of the same class in a non-member function. Only the member functions of that class can create an object of the same class and invoke the constructor.