class A is there i want restrict this class , without creating an Object how can do?, it should be inheritance possible, & should not be instanciated.?
You can restrict the class by making the constructor of a class private.Since the private modifier is accessible withing the class, when a class outside this class tries to instantiate this class it gives error as the class cannot be instantiated.
You can also restrict the class by giving abstract key word to the class. Only abstract classes can not be instantiated.