devxlogo

The Access Specifier of Special Member Functions

The Access Specifier of Special Member Functions

The default constructor, copy constructor, assignment operator, and destructor are special member functions. The implementation implicitly declares these member functions for a class when the program does not explicitly declare them. The default access specifier for these implicitly declared functions is always public.

devx-admin

Share the Post: