Home
[RDK Central Wiki]
CMF
[Code Releases]
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.
Powered by a free Atlassian Confluence Open Source Project License granted to RDKCentral. Evaluate Confluence today.
1 Comment
Unknown User (asingh)
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.