[RDK Central Wiki]


Code Releases


RDK Forums Home

Page tree
Skip to end of metadata
Go to start of metadata

If one was to write a new Service for ServiceManager, would the base class be Service, or AbstractService? 

I see two conventions in the source code.  I guess one is the "old" convention, and the other is the "new" convention but I don't know which is which.

It certainly seems that AbstractService is the better choice, because several pure virtual functions from Service have default implementations there, but I just want to make sure this is the right choice.


  • No labels

1 Comment

  1. The better alternative is of course the "AbstractService" class as it is the newer version and derived from the "Service" class and has a superset of features of the service class. However, pure virtual functions may be useful for enforcing OOPS convention of data hiding and abstraction.