Junior — Middle
What category can be attributed to a class in object-oriented programming?
sobes.tech AI
Answer from AI
In object-oriented programming, a class can be considered a 'template' or 'type' that describes the structure and behavior of objects. A class defines properties (fields) and methods (functions) that objects of this class will have.
For example, a class Car might include properties: color, make, model; and methods: drive, brake.
Objects are specific instances of the class with particular property values.