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.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.