Can a class be private in c#?



Can a class be private in c#?..

Answer / Iftkar Hussain Ansari

No, a class cannot be made private in C#. However, its members (fields and methods) can have access modifiers such as public, protected, internal, or private.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is collection of classes in c#?

1 Answers  


How long can loop recorders stay in?

1 Answers  


Explain copy constructor?

1 Answers   Accenture,


Explain the process of Serialization?

1 Answers  


What tool we have to use to install assembli in gac folder.

1 Answers  


Differentiate between response.expires and response.expiresabsolute?

1 Answers  


Difference between debug.write and trace.write?

1 Answers  


What is typeof undefined?

1 Answers  


What are the three types of operators?

1 Answers  


What is a method signature?

1 Answers  


What is difference between value and reference types ?

4 Answers   Accenture,


Is XML case-sensitive?

3 Answers   Wipro,


Categories