I want to use the return value of methods directly. For example in C++, we can use:
//Some codes
cout << obj1.get_foo() << endl;
int a = obj2->get_value() + 100 + obj2->get_value();
or
//...
obj1->set_color("BLUE");
cout << "Color is:" << obj1->get_color();
printf("Color is: %s", obj1->get_color()); // C Version
When I do this in ABAP like:
OBJ1->SET_COLOR( 'BLUE' ). "That's OK.
WRITE:/ 'Color is:', OBJ1->GET_COLOR( ). "Error!
And I expected this output:
Color is: BLUE
Edit: I used Parameter word in Title not as ABAP Keyword, but as function arguments.