Exemple #1
0
            public void viewComic(string comicType)
            {
                Comic comic;

                if (comicType.Equals("Doraemon"))
                {
                    comic = new Doraemon();
                    comic.view();
                }
                else if (comicType.Equals("Conan"))
                {
                    comic = new Conan();
                    comic.view();
                }
                else if (comicType.Equals("Shinoshuke"))
                {
                    comic = new Shinoshuke();
                    comic.view();
                }
            }
Exemple #2
0
            public void viewShinoshuke()
            {
                Shinoshuke shinoshuke = new Shinoshuke();

                shinoshuke.view();
            }