441,547 views
5 votes
5 votes
Question #1

dropdown
choose the term described.

a variable in a program that represents a class and is created by an assignment statement

function created within a class
definition

constructor
method
instance

User ChrisDekker
by
2.9k points

1 Answer

13 votes
13 votes

Answer:

instance - a variable in a program that represents a class and is created by an assignment statement

method - function created within a class definition

Step-by-step explanation:

A class is made up of the members fields and methods.

Fields are variables in the class and methods are functions in the class.

An instance is a copy of the class also called an object

User Sebastian S
by
2.8k points