Last active
January 27, 2019 19:25
-
-
Save nasrabadiAM/48b74b3f429f50a9b720d952dba0bc7a to your computer and use it in GitHub Desktop.
Single Responsibility Principle contradict
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 Text { | |
String text; | |
String author; | |
int length; | |
String getText() { ... } | |
void setText(String s) { ... } | |
String getAuthor() { ... } | |
void setAuthor(String s) { ... } | |
int getLength() { ... } | |
void setLength(int k) { ... } | |
/*methods that change the text*/ | |
void allLettersToUpperCase() { ... } | |
void findSubTextAndDelete(String s) { ... } | |
/*method for formatting output*/ | |
void printText() { ... } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment