using System.Collections.Generic;
private List<Store> listStore;
listStore = new List<Store>();
public List<Store> ListStore{
set { listStore = value; }
get { return listStore; }
public void displayListStoreDetail(){
Console.WriteLine("This is List Stroe from Mall " + name);
foreach(Store item in listStore ){
private List<Smartphone> listPhone;
listPhone = new List<Smartphone>();
public List<Smartphone> ListPhone{
set { listPhone = value; }
get { return listPhone; }
public void displaySmartphoneList(){
Console.WriteLine("This is List Stock from " + name);
foreach(Smartphone item in listPhone ){
Console.WriteLine("The Price of Smartphone"+item.Name+"with ROM [Rom]GB and RAM [Ram]GB is Rp [Harga]");
public static Store insertStoreData(){
Store objStore = new Store();
Console.WriteLine("What is Store Name ? \n");
objStore.Name = Console.ReadLine();
public static Mall insertMallData(){
Mall objMall = new Mall();
Console.WriteLine("What is Mall Name ? \n");
objMall.Name = Console.ReadLine();
public static void Main()
Console.WriteLine("How many Mall ? \n");
string jml_mall = Console.ReadLine();
List<Mall> listMall = new List<Mall>();
for(int y = 0 ; y< Convert.ToInt16(jml_mall); y++){
foreach(Mall item in listMall){
item.displayListStoreDetail();
int total_price = Ram * 150000 + Rom * 100000;