Can we write class inside a class in c#?



Can we write class inside a class in c#?..

Answer / Nimisha

No, it is not possible to write a class inside another class in C#. Classes can be nested but they are not contained within each other.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Why do we Need of static class in c#?

1 Answers   NA,


What is the difference between array and list in c#?

1 Answers  


What are callback methods in c#?

1 Answers  


What is difference between string and stringbuilder in c#?

1 Answers  


What is the difference between delegates and superdelegates?

1 Answers  


what is scope of a protected internal member variable of a c# class

1 Answers   Cognizant,


How to generate strong name key file or which command is used to generated strong name key file?

1 Answers   CitiusTech,


What does Dispose method do with the connection object?

2 Answers  


What is the difference between Decorator and Adapter pattern?

1 Answers   QuestPond,


What is session state in asp net c# with example?

1 Answers  


What is a boolean c#?

1 Answers  


What is int tryparse in c#?

1 Answers  


Categories