main program:
======================
======================
======================
if ===================
===================
===================
===================
======================
======================
======================
while ================
===================
===================
===================
===================
======================
======================
======================
======================
======================
for ==================
===================
===================
===================
======================
======================
======================
======================
if ===================
===================
===================
===================
else =================
===================
===================
===================
======================
======================
======================
...
main program:
======================
======================
======================
call fred
======================
======================
if ===================
===================
===================
call eric
======================
======================
======================
x := bob()
======================
======================
while ================
===================
===================
======================
======================
call eric
======================
======================
======================
procedure fred:
======================
======================
======================
procedure eric:
if ===================
===================
===================
======================
======================
======================
function bob:
======================
======================
return ===============
main program:
======================
======================
======================
call fred
======================
======================
if ===================
===================
===================
call eric
======================
======================
======================
x := bob()
======================
======================
while ================
===================
===================
======================
======================
call eric
======================
======================
======================
module Tom:data:
======================
======================
procedure fred:
======================
======================
======================
procedure eric:
if ===================
===================
===================
======================
======================
======================
end module Tomfunction bob:
======================
======================
return ===============

An object is not an Abstract Data Type

main program:
======================
======================
aDick := new Dick # instantiate using class Dick
aDick.fred() # send message fred to aDick
======================
======================
if ===================
===================
===================
aDick.eric()
======================
======================
======================
x := bob()
======================
======================
while ================
===================
===================
======================
======================
aDick.eric()
======================
======================
======================
define class Dick:data:
======================
======================
method fred:
======================
======================
======================
method eric:
if ===================
===================
===================
======================
======================
======================
end class Dickfunction bob:
======================
======================
return ===============

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store