What is the single responsibility principle? The single responsibility principle in Java demands that a class serves a single, clear purpose. Any attempt to add peripheral functionality to a ...
The following is an implementation in Java for an Android application, but the logic would apply to any language. Your definition of a Comment object will be different than mine so I left that class ...