ICSE Class 10 Computer Applications
Question 1 of 30
Solved 2024 Question Paper ICSE Class 10 Computer Applications — Question 1
Back to all questionsPolygon is the class and the pictures are objects
Reason — In object-oriented programming (OOP), a class is a blueprint or template that defines the properties and behaviours (methods) of objects. An object is an instance of a class that holds specific data defined by the class.
In this case:
- Polygon represents the class because it defines the general structure, properties, and methods common to all polygons (e.g., sides, vertices, perimeter calculation).
- The pictures are specific examples or instances of polygons, such as triangles, parallelogram, or pentagons, making them objects created from the Polygon class.
