Megasoft Interview Question
Software Engineer / DevelopersLol..dude...dynamic types? srsly? design patterns get way more complicated. I don't think u understand what u r talking about
More complicated in realization? Hmmm.. )) It`s difficult sometimes to understand what`s it for and what`s it doing when u see some pattern for the 1st time. And there so many ones.
About realization - usage design patterns goes via usage OOP and templates, what is so complicated there, dude?
And make C being a dynamically typed lang - I see much more complicated.
Templates are again in C++ and not in C. Only way to declare a user defined datatype in C is structure and thats how the OOPs feature is implemented in C. Check out this link which talks about virtual functions and inheritance in C
- UB_Green December 23, 2010stackoverflow.com/questions/415452/object-orientation-in-c/415536#415536