Why are ModelListener::model and Model::modelListener data members declared protected rather than private?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-11-10 6:09 PM
I notice that both ModelListener::model and Model::modelListener data members are declared protected rather than private.
This would indicate the provision for inheriting from ModelListener and/or Model.
Under what circumstances might one want to do that and more importantly, how would that work in terms of memory allocation?
ie how would one organise for TouchGFX to allocate the derived class instances?
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-01-09 12:42 AM
I think, initially, the idea was that you could have sub models that inherited from the Model class, but in reality this is not the best or easiest solution - So you could say that they might as well be private.
/Martin
