Differentiate between the public and private ?



Differentiate between the public and private ?..

Answer / Mohd Waseem Akram

In C#, a class member or method that is marked as 'public' can be accessed from any other class in the same namespace. On the other hand, a member or method that is marked as 'private' can only be accessed within its defining class.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What does out mean c#?

1 Answers  


What is this keyword in C#?

1 Answers  


From which base class do all Web Forms inherit from?

1 Answers   Siebel,


What is cls, cts and clr in net?

1 Answers  


What is the console on a mac?

1 Answers  


How are Windows programs different from normal C-programs?

1 Answers   Tech Mahindra,


what is class libraries?

1 Answers  


Explain the difference between Response.Write () and Response.Output.Write ().

1 Answers   Atos, Atos Origin,


What is dll hell, and how does .net solve it?

1 Answers  


Define method overloading in c#?

1 Answers  


What is the data type for bit in c#?

1 Answers  


Where are value types stored in c#?

1 Answers  


Categories