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!
Select
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
play-icon
play-icon
qr-code
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

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits