Created
May 30, 2021 08:36
-
-
Save ssukhpinder/001cc4870ee093cab1ac5eb2b6b44eaa 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 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