In this post, we will learn raptor object oriented mode by creating a class and invoking it in the main flow chart. We will create a simple plain object called Messenger. It stores the a string message and returns when invoked by a getter method.
Steps for creating a class
Launch Raptor and Go to UML tab
In the UML tab you can create a class.
Create a class for example Messenger.
Add new field called message.
Add a getter method getMessage()
Add a constructor for the class Messenger. This method is invoked when we create the object in the main flow chart.
Design a main flow chart.
Create a variable that stores the message.
Create an object for the class Messenger.
Pass the variable to the constructor of the class.
Output the information from the object getter method.
Run and check the output of the flow chart.