0 votes
in C Sharp by
What are constructors in C#?

1 Answer

0 votes
by

A constructor is a member function in the class and has the same name as its class. Whenever the object class is created, the constructor is automatically invoked. It constructs the value of data members while initializing the class.

Related questions

+1 vote
asked Apr 9, 2020 in C Sharp by GeorgeBell
0 votes
asked Oct 18, 2019 in C Sharp by Robin
...