I have been trying to understand componentization(contrasting to the OOP concepts and also called component oriented programming), in relation to C++.
I have researched regarding this on internet but there were very little structured information available. The windows COM object seems pretty componentized. I have found http://c2.com/cgi/wiki?ComponentDefinition useful.
What could be the best and simple C++ code example, to illustrate the componentization concept?
I have a few high level ideas,like:
I have an English word. A word is made up of several symbols or characters. Now, each character can be of several types like alphabetic, numeric, punctuation, whitespace, etc. So, each alphabet,number,etc. represent the fundamental components, based on which, a word will be formed and will come into existence. The word becomes an aggregate component(of symbols), based on which a sentence will be formed and so on.
The protons, neutrons and electrons are individual agrregate components which form an atom.
Then, how is composite design pattern different from the componentization concept?
Please guide me. Thanks.