PureBasic and the Object-Oriented Programming

or the OOP demystified

 

Why OOP in PureBasic ?

It can be surprising to try realizing in PureBasic, which is a procedural language, an object-oriented representation, as far as numerous languages adapted to the OOP exist.

But the fact that some programming languages are called "Object" and the other one are not, is the expression of specific keywords, which facilitate the writing of these programs.
So, object-oriented languages enrich semantics but not modify at all the compilation aspects with regard to a none-object language. They are only adding a layer over this last one.

Thus we can implement completely the concepts in PureBasic but the price is a precision both of development and of notation. It is there the immediate advantage of object-oriented languages.

Nevertheless, to put into practice the object-oriented concepts in PureBasic offers, besides the possibility of scheduling according to OO philosophy, the interest to reveal some underlying mechanisms of the object-oriented languages keywords.

This paper presents a programming technique that allow large projects to benefit of object oriented design. It doesn't intend to be a course on OOP techniques and assumes the reader to have a good knowledge of the PureBasic language.



Contents

[1-2-3-4-5-6-7-8-9]

Top of the page