using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DesignPatternsPractices.Creational.Builder
{
    internal class Vehicle
    {
        private string _vehicleType;
        private Dictionary<string, string> _parts;

        public Vehicle(string vehicleType)
        {
            _vehicleType = vehicleType;
            _parts = new();
        }

        public string this[string key]
        {
            get { return _parts[key]; }
            set { _parts[key] = value; }
        }

        public void Show()
        {
            Console.WriteLine("\n------------------");
            Console.WriteLine("Vehicle Type : {0}" ,_vehicleType);
            Console.WriteLine("Frame : {0}", _parts["frame"]);
            Console.WriteLine("Engine : {0}", _parts["engine"]);
            Console.WriteLine("Wheels : {0}", _parts["wheels"]);
            Console.WriteLine("Doors : {0}", _parts["doors"]);

        }

    }
}
