Pratul Tripathi
Why Static class can not contain Protected members ?
Posted by Pratul Tripathi in OOP | Others on Jun 25, 2010
0
Do you know the answer for this question? Post it below.
Guest

Protected members means they can accessible from child classes,
 But the main features of static class are
1.only contain static members.
2.Cann't be instantiate.
3.are sealed.

Posted by sarada burugula on Nov 12, 2010

Protected members can used when we want access of thoese variable in throughout the inherted classes but static class can not be inherited.

Posted by Uday Gaikwad on Aug 25, 2010

Since Static classes are sealed classes, and sealed classes can not be inherited,hence it can not contain protected members, because protected members can not be inherited.

Posted by Pratul Tripathi on Jun 29, 2010
Sponsored by
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications.
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
Sponsored by
6 Months Free & No Setup Fees ASP.NET Hosting!
Become a Sponsor
PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | REPORT ABUSE © 2011 C# Corner. All contents are copyright of their authors.