J justuni Member Sep 7, 2018 #1 Is the a pattern and support for VB6 style Interfaces? These were empty classes that used a implements keyword for which your would later create a default implmentation akin to CViewImpl. Later you would create a CMyView which would contain a CViewImpl and manually reference it. Currently I am using the custom class template concept from B4X (version 8.x I think).
Is the a pattern and support for VB6 style Interfaces? These were empty classes that used a implements keyword for which your would later create a default implmentation akin to CViewImpl. Later you would create a CMyView which would contain a CViewImpl and manually reference it. Currently I am using the custom class template concept from B4X (version 8.x I think).
Erel B4X founder Staff member Licensed User Longtime User Sep 9, 2018 #2 justuni said: Is the a pattern and support for VB6 style Interfaces? Click to expand... No. You can use CallSub to call a class method without knowing the class type. This is called duck typing. Upvote 0
justuni said: Is the a pattern and support for VB6 style Interfaces? Click to expand... No. You can use CallSub to call a class method without knowing the class type. This is called duck typing.
J justuni Member Sep 11, 2018 #3 I am aware of duck typing it was a main stay of VB6. Many thanks for your time a patience! Upvote 0