Is there a way to force a subclass to subscribe to...
# rx
u
Is there a way to force a subclass to subscribe to observable, sort of like abstract methods?
p
Sure just subscribe in the base class and let the children have an abstract Subscriber function
u
hmm I like this --
Copy code
override childDoStuffPlease(baseObservable) : Disposable {
   return baseObservable
      .myStuff
      .subscribe {}
}
@Jacques Smuts
j
That’s what I was trying to describe, but the way you put it is better.
Thanks đŸ™‚