Ejemplo n.º 1
0
        public static void Main(string[] args)
        {
            FakeDB db = new FakeDB();

            db.Add(new Person("Anton Timonin", 2700));
            db.Add(new Person("Gergor Timonin", 0));
            db.Add(new Company("RNA Bank", 17, 27000));
            db.Add(new Person("Digo Eldigo", 800));

            db.ShowFormateInfo(new ToJson());
            db.ShowFormateInfo(new ToXml());
        }