Multiple choice technology programming languages

An object is an instance of a __________.

  1. program

  2. class

  3. method

  4. data

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

An object is created as an instance of a class. The class defines the type, and when you instantiate it with 'new', you create an object that belongs to that class type. A program contains many objects, methods are behaviors defined in classes, and data is what objects store.