Pratul Tripathi
Why Static Class Can Not Contain Protected Members ?
By Pratul Tripathi in OOP/OOD on Jun 25 2010
  • Pratul Tripathi
    Jun, 2010 29

    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.

    • 1
  • sarada burugula
    Nov, 2010 12

    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.

    • 0
  • Uday Gaikwad
    Aug, 2010 25

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

    • 0
  • Bishwajit Saha
    Jun, 2010 30

    Protected members mean it would be accesible fom child/inherited class. But static class cannot be inherited.

    So what is the use of Protected mmbers in Static Class. That is why Static class can not contain Protected members.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS