I have a class Game that is my main class and a second class Card. Class Card hast its properties and constructor private, only function init is public. Function init checks
public class demo { private demo() { } public static demo getObject() { return new demo(); } public void add() { } } class Program { static void Main(string[] args) { demo d1 = demo.getObject(); d1.add(); } }