What is the difference between internal and private in c#?



What is the difference between internal and private in c#?..

Answer / Shivanshu Ruhela

In C#, 'internal' is a visibility modifier that allows access within the same assembly, while 'private' only allows access within the containing class or structure.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

How do you escape in c#?

1 Answers  


What is gac? How to put assembly in gac?

1 Answers  


Can an interface extend a class c#?

1 Answers  


What is the use of generics in c#?

1 Answers  


What are access modifiers used for?

1 Answers  


What does the parsefloat function do?

1 Answers  


What is the use of main method in c#?

1 Answers  


If I want to override a method one of class A and in class b then how do you declare?

1 Answers  


What is the difference between static and constant variables?

1 Answers   Accenture,


Who is a accessibility modifier “protected internal” available to ?

1 Answers   Siebel,


What is method in c#?

1 Answers  


What?s the difference between an interface and abstract class?

4 Answers  


Categories