publish() method of PubSubSystem class is not getting used anywhere. From PubSubDemo file, we can see Publishers are directly calling the publish method of Topic, bypassing the PubSubSystem layer.
The entire implementation of PubSubSystem class has no mention of Publisher class, and directly dealing with Topic class and it's methods. This seems to break the OOPs concept.
Context: pubsubsystem
publish() method of PubSubSystem class is not getting used anywhere. From PubSubDemo file, we can see Publishers are directly calling the publish method of Topic, bypassing the PubSubSystem layer.
The entire implementation of PubSubSystem class has no mention of Publisher class, and directly dealing with Topic class and it's methods. This seems to break the OOPs concept.