Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
154 / 187
What is meant by action?
Answer:
The simplest and most obvious way to specify an action in C++ is to write a function. If an action has to be delayed, it has to be transmitted elsewhere before being performed, it requires its own data that has to be combined with other actions etc.,
Then is often becomes attractive to provide the action in the form of a class that can execute the desired action and provide other services as well.
Asked In ::
Vivek
23 Feb, 2019 5:07 AM
The simplest and most obvious way to specify an action in C++ is to write a function. If an action has to be delayed, it has to be transmitted elsewhere before being performed, it requires its own data that has to be combined with other actions etc.,
Then is often becomes attractive to provide the action in the form of a class that can execute the desired action and provide other services as well.
Then is often becomes attractive to provide the action in the form of a class that can execute the desired action and provide other services as well.