PrepAway - Latest Free Exam Questions & Answers

The purpose of a constructor in a class is to:

The purpose of a constructor in a class is to:

PrepAway - Latest Free Exam Questions & Answers

A.
Initialize an object of that class.

B.
Release the resources that the class holds.

C.
Create a value type.

D.
Inherit from the base class.

Explanation:
Each value type has an implicit default constructor that initializes the default value of that type.

2 Comments on “The purpose of a constructor in a class is to:


Leave a Reply