예제 #1
0
 public Store(int quantity)
 {
     _articles = new Article[quantity];
     _articles[0] = new Article("tel", "Apple", 9000);
     _articles[1] = new Article("monitor", "Apple", 8000);
     _articles[2] = new Article("notebook", "Dell", 5600);
 }
예제 #2
0
 static void DisplayInformation(Article article)
 {
     Console.WriteLine(String.Format("Information about product: ProductName - {0}, StoreName - {1}, Price = {2}", article.ProductName, article.StoreName, article.Price));
 }