I have a car class and an electric machine class. The fact is that the electric machine class inherits the Fuel field from the machine class and I need to delete or rename it simply because the electric machine does not have fuel but has a charge.
class Car { public int MaxSpeed = 180; public int Range = 100; public int CurrentSpeed = 100; public int Fuel = 100; public void Drive() { if (Fuel <= 0) throw new Exception("Not enough fuel"); else { this.Fuel--; Range -= Range / CurrentSpeed; } } } class ElectroCar : Car { int Charge; public ElectroCar() { Charge = base.Fuel; } }