static void Main(string[] args) { Director.layoutArticle(new BuilderTXT(), "Neurons", "text"); ArticleTXT articleTXT = (ArticleTXT)Director.GetArticle(); Console.WriteLine(articleTXT.Title); Director.convertArticle(new BuilderXML(), articleTXT); ArticleXML articleXML = (ArticleXML)Director.GetArticle(); Console.WriteLine(articleXML.Title); }
public void reset() { articleXML = new ArticleXML(); }