예제 #1
0
    static void Main()
    {
        Console.WriteLine("Welcome to Furniture Shop");
        Chair chair1 = new Chair();
        Chair chair2 = new Chair();
        Bed   bed1   = new Bed();

        Console.WriteLine("{0}\tprice{1}\tid={2}", chair2, chair2.price, chair2.GetHashCode());
        Console.WriteLine("{0}\tprice{1}\tid={2}", chair1, chair1.price, chair1.GetHashCode());
        Console.WriteLine("{0}\tprice{1}\tid={2}", bed1, bed1.price, bed1.GetHashCode());

        LinkedList list = new LinkedList();
        Set        set  = new Set();

        Console.WriteLine(set);

        list.Add(20);
        list.Add(30);
        //set.Add(20);
        //set.Add(30);

        ConceptArchitect.Data.Table table1 = new ConceptArchitect.Data.Table(); //which table?
        table1.Add(2, 3, 4);

        Table table2 = new Table();

        Console.WriteLine(table2.price);

        Search search = new Search();

        Console.WriteLine(search);
    }
예제 #2
0
    static void Main()
    {
        Chair chair1 = new Chair();

        chair1.price = 1000;
        Console.WriteLine("chair1:" + chair1 + "\tprice is " + chair1.price);

        Chair chair2 = new Chair();

        chair2.price = 5000;
        Console.WriteLine("chair2:{0}\tprice is:{1}", chair2, chair2.price);

        List list1 = new List();

        Console.WriteLine("list1 is {0}", list1);

        Table table1 = new Table();

        Console.WriteLine("table is {0}", table1);

        FTable table2 = new FTable(); //what is this class? I dont know

        Console.WriteLine("table2 is {0}", table2);

        Set set1 = new Set();

        Console.WriteLine("set1 is {0}", set1);

        PrabhatCorps.Data.Table table3 = new PrabhatCorps.Data.Table();
        Console.WriteLine("table3 is {0}", table3);
    }