Created
April 18, 2018 19:50
-
-
Save kudapara/71c9089275461270caeaab0f4c60654d to your computer and use it in GitHub Desktop.
Code that adheres to ISP
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
class Shape { | |
constructor () {} | |
area () {} | |
} | |
class SolidShape { | |
constructor () {} | |
volume () {} | |
} | |
const triangle = new Shape() | |
const cube = new SolidShape() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment