Created
December 4, 2025 07:09
-
-
Save tezifoj/fcf093743a77b743f6bf3ce6850af29b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| package classes; | |
| public abstract class Observable { | |
| private String name; | |
| public Observable(String name){ | |
| this.name = name; | |
| } | |
| public String getName() { | |
| return name; | |
| } | |
| public abstract String getDescription(); | |
| @Override | |
| public String toString() { | |
| return getDescription(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment