Advertisements
Advertisements
Question
The maximum number of objects of a class can be created as:
Options
1
2
On the user's choice
Number of variables
MCQ
Solution
On the user's choice
Explanation:
Most programming languages (such as Python, Java, and C++) have no fixed limit on the number of objects (or instances) that can be created for a given class. The only limitations on the number of objects are: Available memory: Your system's memory may limit the number of items you can create. User logic: The user determines how many instances are required.
shaalaa.com
Is there an error in this question or solution?