407
Switching to OCaml bois
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
Those are nice. Services that manage data are an example. Having the class also declare how to interact with the data is nice.
My most OOP pattern I like using is implementing an interface with an abstract class for "standard" implementation. Then implement abstract methods for a concrete thing.