Which access specifier is used where one wants data members to be accessed by other classes but not from outside objects?
Which access specifier is used where one wants data members to be accessed by other classes but not from outside objects? Correct Answer protected
Protected and public members are accessible from derived classes but public members can be accessed by objects of the class so protected specifier is the answer.
মোঃ আরিফুল ইসলাম
Feb 20, 2025