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(); } }
public void viewShinoshuke() { Shinoshuke shinoshuke = new Shinoshuke(); shinoshuke.view(); }