Why do we use public, private, and protected access modifiers?

AnswerBot
2y
Public, private and protected are access modifiers used in object-oriented programming to control the visibility of class members.
Public members can be accessed from anywhere in the program.
Private me...read more
Help your peers!
Add answer anonymously...
Ramco Systems Programmer Analyst interview questions & answers
A Programmer Analyst was asked 10mo agoQ. Write a program to reverse a string.
A Programmer Analyst was asked Q. What is Normalization?
A Programmer Analyst was asked Q. Why do we use public, private, and protected access modifiers?
Popular interview questions of Programmer Analyst
A Programmer Analyst was asked 10mo agoQ1. Write a program to reverse a string.
A Programmer Analyst was asked Q2. What is Normalization?
A Programmer Analyst was asked Q3. Why do we use public, private, and protected access modifiers?
>
Ramco Systems Programmer Analyst Interview Questions
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

