All about mql OOP

 

From my experience on this site, it's not always easy to find the good topic(s) in the mass of information. So I will use this topic as central one concerning OOP usage in mql.

Feel free to make suggestion.


The Stanislav's blog will give you a lot of ideas and information.


<work in progress>

Documentation on MQL5: Language Basics / Object-Oriented Programming
Documentation on MQL5: Language Basics / Object-Oriented Programming
  • www.mql5.com
Object-oriented programming (OOP) is programming primarily focused on data, while data and behavior are being inseparably linked. Data and behavior together constitute a class, while objects are class instances. OOP considers computation as modeling of behavior. The modeled item is the object represented by computational abstractions. Suppose...
 
 
Alain Verleyen:
   

Very interesting discussion (but a bit theoretical) about inheritance and polymorphism in relation to GUI and graphical objects management

BTW, I often think, that polymorphism appeared initially to solve the problem of GUI needs to interact with user dynamically...

all other polymorphism use-cases are just of secondary  benefit - this is my viewpoint... and often rather doubtfully to be a benefit... often delegation is more preferable than inheritance

Reason: