Professional Documents
Culture Documents
Access Modifiers 1.1
Access Modifiers 1.1
Access Modifiers 1.1
Helps to restrict the scope of a class, constructor , variable , method or data member.
Types
• Public
• Private
• Protected
• Default
Real time example
Bed Room Private
Hall
Private Visible with in the class. It is not accessible outside the class.