Created
February 15, 2021 18:11
-
-
Save anjanashankar9/f6dfabcc20176de3bd768343000e7ffe to your computer and use it in GitHub Desktop.
Concrete classes - decorator pattern
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 Circle implements Shape { | |
@Override | |
public String draw() { | |
return "This is a circle !!!"; | |
} | |
} | |
public class Rectangle implements Shape { | |
@Override | |
public String draw() { | |
return "This is a Rectangle !!!"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment