What is the difference between method and constructor in c#?
Answer / Rachit Vanslas
In C#, a method is a function that performs a specific task, can have a return value, and is called by its name along with arguments in parentheses. A constructor is a special method used to initialize an object of a class when it's created. The main difference lies in their purpose: a method is for performing operations while a constructor initializes the object.
| Is This Answer Correct ? | 0 Yes | 0 No |
List down the different ide’s provided by microsoft for c# development.
How?s method overriding different from overloading?
How can I process command-line arguments?
Can you change the value of a variable while debugging a C# application?
What is expression c#?
What are Types of assemblies that can be created in dotnet
What are collection classes?
What is the difference between static class and sealed class in c#?
Suppose in a scenario if we want to display information only until 4.00 p.m and after that means after 4.00 p.m if any one tries to access the information it should give error mesage. Then how will you write a delegate for this ? Give coding.
1 Answers HP, nTech Solutions, Primetech Software, PS,
Is c# static or dynamic?
Can you create enumerated data types in C# ?
List down the fundamental oop concepts?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)