Google News
logo
Perl - Quiz(MCQ)
What is encapsulation in Perl?
A)
Creating Arrays
B)
Creating separate structures storing values
C)
Wrapping up data and related methods to a single unit
D)
All of the above

Correct Answer :   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.

Advertisement