CODESYS - Runtime polymorphism using an ITF (OOP)
Source code: https://github.com/ATandU?tab=reposit... Polymorphism is one of the pillars of the OOP and means "Having many forms" There is a Compile-time polymorphism also known as static polymorphism or early binding and it can be achieved with functions overloading. (not only) The Runtime-time polymorphism also known as dynamic polymorphism or late binding and it is when the function call is resolved at run time. That means, that the specific function to call will be determined at runtime based on the object’s dynamic type. (In our case the ellipse and the rectangle and the M_Area to be invoked) In this video, the runtime polymorphic behavior is achieved with an ITF that is implemented by two FB's. The FB's are shapes and have a common property area. The object ITF describes a set of method and property prototypes. That means that the methods and properties contain only declarations and no implementation. The implementation must be provided by the FB's that implement the ITF. This allows different function blocks, that have common properties, to be used in the same way. (Calculating the Area of a Shape in our case) All the methods and properties in the ITF have the access specifier public. The Properties are an extension of the IEC standard and a tool for object-oriented programming. They are used for data encapsulation because they allow external access to data. For this purpose, a property provides the accessor methods Get and Set which allows read and write access to the encapsulated data.

CODESYS - Runtime polymorphism using inheritance (OOP)

Python OOP Will Finally Make Sense After This

CODESYS - How to pass an array to F_ FB_ or M_ without knowing its size in the function itself

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

CODESYS - Creating OOP Module

Andrew Kelley: A Practical Guide to Applying Data Oriented Design (DoD)

The Design of C++ , lecture by Bjarne Stroustrup

Casey Muratori – The Big OOPs: Anatomy of a Thirty-five-year Mistake – BSC 2025

CODESYS Basics | What is CODESYS and Why is it Important?

CODESYS - Difference between pointer and reference

Something is jamming GPS over Europe. Here's what we found

Nobody Breaks Celebrities Like Rowan Atkinson

Ditch your Favorite Programming Paradigm

Object Oriented Industrial Programming (OOIP) -- March 2021 CODESYS Tech Talk

Why The Russian Accent Terrifies Everyone

18-Years-old Erling Haaland Scored 9 Goals in 1 Game

An Introduction to HMI/Visualization Programming with CODESYS!

WTF is going on?!

CODESYS Tutorials, Tips & Tricks | The Power of Object Oriented Industrial Programming (OOIP)

