C# Programming - Constructors - Discussion
Discussion Forum : Constructors - General Questions (Q.No. 5)
5.
Which of the following statements is correct about constructors?
Discussion:
4 comments Page 1 of 1.
Malathisachu said:
1 decade ago
If constructor is not used than c# create default constructor while executing the program.
Rajeev said:
1 decade ago
If we do not provide a constructor that means all the time default constructor will called which is by default PUBLIC and without parameters. That is why ---
"If we do not provide a constructor, then the compiler provides a zero-argument constructor."
"If we do not provide a constructor, then the compiler provides a zero-argument constructor."
Sank said:
1 decade ago
Although main () method is static why then it access all methods of static and non-static?
Jaya said:
10 years ago
If we don't provide constructor, then by default. Default constructor will called without any parameter.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers