Case statement

Hi all,
1). Can I use a case statement inside a class??
2). Can I use the many tasks to be executed inside a case statement??

Please provide the your necessary inputs on this

In reply to rbhanumu:

  1. Yes, you can use a case statement inside a task or a function inside a class.
  2. I am not sure what you are asking. Can you provide an example?

In reply to rbhanumu:

With the use ofbegin and end , you can call as many task you want. Make sure that case statement must be implemented in task .