Question 1
EasyWhat is a class in object-oriented programming?
- A.
A built-in data type only
- B.
A single object in memory
- C.
A function that returns a value
- D.
A blueprint that defines the data and behaviour of objects
Show answer and explanation
Answer: D
A class describes attributes and methods; objects are instances created from it.