public override void FillProcess() { Console.Write("Screen size: "); ScreenSize = Convert.ToSingle(Console.ReadLine()); Console.Write("OS: "); OS = Enum.Parse <OperationSystems>(Console.ReadLine()); Console.Write("Camera (pixels): "); CameraPixels = Convert.ToSingle(Console.ReadLine()); base.FillProcess(); }
public Smartphone(string name, float price, int id, float screenSize, OperationSystems os, float cameraPixels) : base(name, price, id) { ScreenSize = screenSize; OS = os; CameraPixels = cameraPixels; }