Thursday, February 11, 2010

Ways to prevent a class from instantiated

Name two ways that you can prevent a class from being instantiated.
A class cannot be instantiated if it is abstract or if it has a private constructor.

1 comment:

  1. Static Class
    http://senthilmcan-dotnet.blogspot.in/2014/12/static-class.html

    ReplyDelete