Esempio n. 1
0
        public static void Demonstrate()
        {
            var faq = new FAQ {
                Questions = new List <string> {
                    "aa", "bbb"
                }, Title = "test faq"
            };

            faq.print();


            var book = new book {
                Text = "this is book", Title = "book 1", Author = "R. J. Simpson"
            };

            book.print();

            var backwbook = new backwordBook {
                Text = "this is book", Title = "book 1", Author = "R. J. Simpson"
            };

            backwbook.print();

            var paper = new TermPaper {
                Text = "a paper", Class = "s hand", References = "asdasd", Student = "iuhuu"
            };

            paper.print();
        }
Esempio n. 2
0
        public static void Demonstrate()
        {
            var faq = new FAQ { Questions = new List<string> {"aa","bbb" }, Title="test faq"};
            faq.print();

            var book = new book { Text = "this is book", Title = "book 1", Author = "R. J. Simpson" };
            book.print();

            var backwbook = new backwordBook { Text = "this is book", Title = "book 1", Author = "R. J. Simpson" };
            backwbook.print();

            var paper = new TermPaper { Text="a paper", Class="s hand", References="asdasd", Student="iuhuu" };

            paper.print();
        }