• +91 9723535972
  • info@interviewmaterial.com

CSharp Interview Questions and Answers

Question - What are the constructors?

Answer -

In C#, there is a special method that is invoked automatically at the time of object creation. It initializes the data members of a new object and has the same name as the class or the structure. There are two types of constructors:

Default constructor: it has no parameter to pass.
Parameterized constructor: it is invoked with parameters that are passed to the class during object creation.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners