The term instantiation refers to the creation of:

  1. a class from a blueprint.

  2. an object from a class.

  3. a method from an object.

  4. a property from a method.

  5. a blueprint from a property.


Correct Option: B

AI Explanation

To answer this question, you need to understand the concept of instantiation in object-oriented programming.

Option A) a class from a blueprint - This option is incorrect. Instantiation does not refer to the creation of a class from a blueprint. A class is a blueprint or template for creating objects.

Option B) an object from a class - This option is correct. Instantiation refers to the creation of an object from a class. When you instantiate an object, you create a unique instance of that class with its own set of attributes and behaviors.

Option C) a method from an object - This option is incorrect. Instantiation does not refer to the creation of a method from an object. Methods are defined within a class and are used to perform actions or operations on objects.

Option D) a property from a method - This option is incorrect. Instantiation does not refer to the creation of a property from a method. Properties are attributes or data associated with an object, while methods are functions that define the behavior of an object.

Option E) a blueprint from a property - This option is incorrect. Instantiation does not refer to the creation of a blueprint from a property. A blueprint, or class, defines the structure and behavior of an object, while a property is a specific attribute of an object.

The correct answer is B) an object from a class. This option is correct because instantiation refers to the creation of an object from a class.

Find more quizzes: