What is encapsulation in Perl?

24. What is encapsulation in Perl?

  1. Creating Arrays
  2. Wrapping up data and related methods to a single unit
  3. Creating separate structures storing values
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.