Advertisements
Advertisements
Question
A package is a:
Options
Collection of data.
Collection of functions.
Collection of classes.
A nested class.
MCQ
Solution
Collection of classes.
Explanation:
In programming, a package (for example, in Java or Python) is a collection of classes that may include interfaces, sub-packages, and modules. By grouping relevant classes, packages help to organize code logically and encourage modularity.
shaalaa.com
Is there an error in this question or solution?