Created
May 1, 2022 22:11
-
-
Save IvsonEmidio/c9c4418ff2cc6c80430d9966fa59366e to your computer and use it in GitHub Desktop.
SOLID - OCP - VIOLATION
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
//First generic class | |
class Diablo { | |
private readonly brand = "Lamborghini"; | |
private readonly color = "black"; | |
} | |
//Second generic class | |
class Soul { | |
readonly brand = "Kia"; | |
readonly color = "Red"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment