Getting started with OOP

JamesBowen

19+ years progress programming and still learning.
Hi

I wanted to start learning Objected Oriented Programming for many years and never had the time to learn. I've now got the opportunity to start using OOP a new project.

The project is to dynamically generate Javascript code. The JS code is for HighCharts. So I want to create a wrapper program which is essentially object oriented. I have found and existing HighCharts Wrapper written in PHP.

However I'm having difficulties in translating the PHP code into the ABL. Allot of the syntax is familiar with the ABL OO so it should be simple to translate into the ABL.

I've watched John Sadd's videos in "Getting started into Object Oriented Programming" twice and I find it a little bit frustrating because I don't have the OpenEdge Editor available to me under my current licensing (WebSpeed workshop for Windows).

I've also tried to read the Progress developers guide but there is far too much waffling and not enough examples (which don't even compile BTW).

Could some one take a small piece of the PHP code and kindly translate it into the ABL OO. Then hopefully I will be able to see how the methods and properties are converted and I could carry on from the example.

Also all the examples I've seen in the ABL as "object:method()" or "object:property". Can the the ABL handle syntax like this "object:method():property" ?

Example:

oChart:SetTitle('DEMO'):SetSytle('color:red').
oChart:Title():SetSytle('background-color:red').

OpenEdge 10.2B
 
I've slowly started to write my first set of classes and it all working so far. I've also requested an upgrading to OE 11 to take full advantage of the JSON objects/classes. May be I don't need to worry so much.
 
Back
Top