nerdexam
Microsoft

98-361 · Question #5

The purpose of a constructor in a class is to:

The correct answer is A. Initialize an object of that class. Each value type has an implicit default constructor that initializes the default value of that type.

WAN Optimization Fundamentals and Principles

Question

The purpose of a constructor in a class is to:

Options

  • AInitialize an object of that class.
  • BRelease the resources that the class holds.
  • CCreate a value type.
  • DInherit from the base class.

How the community answered

(30 responses)
  • A
    83% (25)
  • B
    3% (1)
  • C
    3% (1)
  • D
    10% (3)

Explanation

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

Topics

#constructor#OOP#object initialization#class

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice