What is the default scope of a class in c#?



What is the default scope of a class in c#?..

Answer / Arun Kumar

The default scope of a class in C# is the same as its namespace. If a class is not declared within another class or namespace, it belongs to the global namespace.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Can constructor be protected?

1 Answers  


What is the difference between “constant” and “readonly” variables in c#?

1 Answers  


Can we inherit an abstract class in another abstract class. If no why and If yes how..?

2 Answers  


Did a generic class can be inherited by a normal class?

1 Answers   TCS,


Is friend a constructor?

1 Answers  


How do you create multiple inheritance in C#?

5 Answers   Infosys, KenIndia, Microsoft,


What is yield return in c#?

1 Answers  


What is JIT (just in time)? how it works?

1 Answers  


What is attribute c#?

1 Answers  


What is the use of tuple in c#?

1 Answers  


Can you have an array of arrays?

1 Answers  


What are the benefits of using windows services:

1 Answers  


Categories