I’m studying composite design pattern but I got so confused to this one. anyone can help/explain this to me ? it would be a big help thanks!
https://refactoring.guru/design-patterns/composite/csharp/example first result from Google for composite design pattern c#
You use “this” three times in your post, which makes people expect a link or an example problem, yet there seems to be none.
Firstly, Your question is incorrect, “How to implement this” suggest you have an idea and want to apply (implement) it using something, where as you are asking for basically a tutorial on some concept without doing anything yourself…
Secondly, I am not very familiar with the concept but from a quick search it looks very similar if not the same as polymorphism, look it up, there are plenty of tutorials, explanations and even entire books on it.
C# devs
null reference exceptions