Class
Object
Instance
User
Answer is Right!
Answer is Wrong!
The correct answer is A. Class.
A class is a blueprint or prototype from which objects are created. It defines the properties and methods that all objects of that class will have. When an object is created from a class, it is called an instance of that class.
For example, a class called Car
might define properties such as color
, make
, and model
, and methods such as drive()
, brake()
, and park()
. An instance of the Car
class would be a specific car, such as a red Toyota Camry.
The other options are incorrect because:
- B. Object is the thing that is created from a class.
- C. Instance is a specific object that is created from a class.
- D. User is the person who creates objects from classes.