nerdexam
Microsoft

98-361 · Question #57

How many parameters can a default constructor have?

The correct answer is A. 0. If a class contains no instance constructor declarations, a default instance constructor is automatically provided. That default constructor simply invokes the parameterless constructor of the direct base class.

Understanding Object-Oriented Programming

Question

How many parameters can a default constructor have?

Options

  • A0
  • B1
  • C2
  • D3 or more

How the community answered

(40 responses)
  • A
    78% (31)
  • B
    3% (1)
  • C
    8% (3)
  • D
    13% (5)

Explanation

If a class contains no instance constructor declarations, a default instance constructor is automatically provided. That default constructor simply invokes the parameterless constructor of the direct base class.

Topics

#default constructor#constructor parameters#object instantiation

Community Discussion

No community discussion yet for this question.

Full 98-361 Practice