Object-oriented programming (OOPs) Question:

What is Public access modifier in C#?

OOP Interview Question
OOP Interview Question

Answer:

The public keyword is an access modifier for types and type members ie. we can declare a class or its member (functions or methods) as Public. There are no restrictions on accessing public members.


Previous QuestionNext Question
What is Private access modifier in C#?What is pure virtual function in OOP?