Computer Science, asked by PragyaTbia, 1 year ago

............... are always declared in public section. Fill in the blank

Answers

Answered by rathsnsa
0
holidays are always declared in public section
Answered by Arslankincsem
0

Constructor functions are normally declared in the public section,A constructor is a special member function of a class which initializes objects of a class.


In C++, constructor is automatically called when object of a class is created.

By default, constructors are defined in public section of class.


So, question is can a constructor be defined in private section of class ?


Answer : Yes, Constructor can be defined in private section of class


Similar questions