Home Arts & LiteratureLanguages Subscribe to RSS

Is Adaptation Of An OOP Concept Polymorphism To Structural Languages Is Possible?

Answer Question

1 Answer - Sort by: Date | Rating

    With the change of solution methods of real-life problems and designed architectures, software projects started to be developed using object oriented  programming instead of structural programming. Powerful structural languages such as C has become less popular in large scale projects due to difficulties of adapting structural solutions for maturity factors.

    As OOP is completely a different approach according to Structural programming, it comes with many programming techniques different from Structural programming. One of these techniques  is polymorphism. Polymorphism simply means "common interface, specific implementation", deeply means each class has its own implementation while they share a common interface. This concept brings benefits to object oriented programming such as combining all objects behaviours in a standard interface and applying it with all classes.  C provides powerful programming abilities like pointers and structures. And by using these elements, polymorphism model can be partially implemented.  

    In adapting polymorphism, function pointers plays the big role for the design. Also using structs is important for creating class oriented models. But, in the current circumstances we can not apply encapsulation in C.It's obvious that polymorphism is more effective when it's used in OOP. Adapting polymorphism brings some extra code implementations that makes small projects more complex.
    0 0

    Sataskhum  

    answered 3 years ago

         
         

        Ask a Question via Twitter

        Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

        Blurtit Store

        Get T-shirts, hoodies, caps and more at the Blurtit store

        Blurtit International