Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public class CarDecorator : Car
protected Car _car;
public CarDecorator(Car car)
_car = car;
public override int CarPrice() => _car.CarPrice();
public override string GetName() =>_car.GetName();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment