Created
May 30, 2021 08:40
-
-
Save ssukhpinder/5421dba5d6ec0d2d0194fc85ec388375 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Sunroof : CarDecorator | |
{ | |
public Sunroof(Car car) : base(car) | |
{ | |
} | |
public override int CarPrice() => _car.CarPrice() + 2000; | |
public override string GetName() => "Alto Lxi with Sunroof"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment