Answer Posted / Kalyan Kumar Yadav
Procs are objects that encapsulate a block of code, allowing it to be passed around as an object. Blocks, on the other hand, are anonymous methods defined within a method call. While blocks can be converted into Procs using the Proc#new method, not all Procs can be used as blocks.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers