What are Access Modifiers?
Access Modifiers are keywords that determine the accessibility of a type- a class, variable or method. There are three types of access modifiers- Private, Protected and Public. Private keyword gives accessibility at most to the members of the class and Friend classes and Friend Functions. Protected keyword gives access at most to the derived classes, Friend classes and Friend Functions. Public keyword gives access to everyone.