Can we create instance of private class in c#?
Answer / Ravinder Kumar Jawalia
No, it is not possible to create an instance of a private class directly from another class or outside the defining class because its constructor is marked as private. To work around this, you can use factory methods or singleton patterns.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is c# static or dynamic?
what are implementation inheritance and interface inheritance?
What is eager and lazy loading in c#?
Can private virtual methods be overridden in c#.net?
What is the difference between hashtable and dictionary?
How many keyword present in C# language ?
Is void a class?
What is c# best for?
What is the use of the dispose method in C# ?
How to use the sreamReader class to read form a text file?
What is a virtual property. Give an example?
What is anonymous types in c#?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)