Skip to content

Instantly share code, notes, and snippets.

@ssukhpinder
Created May 30, 2021 08:39
Show Gist options
  • Save ssukhpinder/95895731e860985d362e8c16aec49b26 to your computer and use it in GitHub Desktop.
Save ssukhpinder/95895731e860985d362e8c16aec49b26 to your computer and use it in GitHub Desktop.
public class AdvanceMusic : CarDecorator
{
public AdvanceMusic(Car car) : base(car)
{
}
public override int CarPrice() => _car.CarPrice() + 3000;
public override string GetName()=> "Alto Lxi with advance music system";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment