1. What is a class in object-oriented programming?
A class is a blueprint or template that defines properties and behaviors for objects.
Erklärung
A class serves as a blueprint or template that defines the properties (attributes) and behaviors (methods) of objects. Objects are instances created from classes, which have their own specific data based on the class definition. The correct answer correctly describes the class as a blueprint and the object as an instance of that blueprint.