Q:

Explain some points related to the constructor?

0

Explain some points related to the constructor?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

There are some important points related to the constructor which mentioned below,

  • A class can have any number of constructors.
  • A constructor doesn’t have any return type, not even void.
  • A static constructor cannot be a parameterized constructor.
  • Constructor of a class must have the same name as the class name in which it resides.
  • A constructor can not be abstract, final, static and Synchronized.
  • Within a class, you can create only one static constructor.
  • Access modifiers can be used in constructor declaration to control its access i.e which other class can call the constructor.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C# Interview Questions and Answers,You Need To Know

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
What is difference between “is” and “as” o... >>
<< What is Constructor in C#?...