Syntax helloAPP [count [custom string]]
Category: object oriented programming
This creates an object that can be linked to a main program containing all hello world services to a parent program. A sample program using that object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 … Read More “C++ Hello World using OOP” »
Ok… this is a “Hello World” program in C++ using objects. It illustrates a number of aspects of object oriented programming in C++ allowing you to get a quickstart into C++ programming. First there is the #include directives which tells C++ that the program uses two libraries, iostream and string (actually they specify the header … Read More “Hello World C++ with Objects” »
Ok, as my previous post showed how to write a routine oriented hello world program in gforth, I now explain a hello world program using objects in object oriented rexx (ooRexx). #!/usr/bin/rexx /* Object Oriented Hello World in REXX */ myobject = .hello~new myobject~print exit ::class hello ::method init expose hellostring hellostring = “Hello World” … Read More “Hello World ooREXX” »