Netcracker Technology Interview Question

First he asked me to create a singleton class using different methods. Then I was asked to create a class that can have only 100 objects.