AP - Advanced Placement Test Practice Test
AP AP Computer Science & Technology 2
In AP Computer Science, what is the purpose of a constructor in object-oriented programming?
Select your answer
A
To destroy an object
B
To initialize a new object's state
C
To sort data
D
To compare two objects
Hint