Data members of a class should be made private to protect


Data members of a class should be made private to protect them from being accessed by nonmember (and no friend) functions. Use function members to provide access to data members that you wish to be accessible. Public members can be accessed from nonmember functions by using the dot operator.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Data members of a class should be made private to protect
Reference No:- TGS02584063

Expected delivery within 24 Hours