Home »
MCQs »
Perl Programming MCQs
What is encapsulation in Perl?
24. What is encapsulation in Perl?
- Creating Arrays
- Wrapping up data and related methods to a single unit
- Creating separate structures storing values
- All of these
Answer: B) Wrapping up data and related methods to a single unit
Explanation:
Encapsulation is wrapping up data and related methods to a single unit in Perl.