What is a constructor?
A constructor is a special method with the same name as the class. It is executed when an instance of the class is created and can contain code to initialize the instance.
What is the difference between public, static and void?
All these are access modifiers in C#. Public declared variables or methods are accessible anywhere in the application. Static declared variables or methods are globally accessible without creating an instance of the class. Void specifies that the method does not return a value.
What is an interface?
An interface contains only the signatures of methods, delegates or events. The implementation of the methods is done in the class that implements the interface. Read more http://msdn.microsoft.com/en-us/library/87d83y5b(v=VS.80).aspx
What is a delegate?
Delegate is a reference type that can be used to encapsulate a named or an anonymous method. Delegates are similar to function pointers in C++; however, delegates are type-safe and secure. Read more http://msdn.microsoft.com/en-US/library/900fyy8e(v=vs.80).aspx
Previous posts:
C# Questions and Answers
C# Questions and Answers – Part 2
C# Questions and Answers – Part 3
Application Development. Business Solutions. Computers. Consulting. Cybersecurity. Information Technology. Software. Technology
Subscribe to:
Post Comments (Atom)
GPG Verify DupeGuru
https://dupeguru.voltaicideas.net/ https://github.com/arsenetar/dupeguru/releases/tag/4.3.1 $ gpg --verify dupeguru_macOS_Qt_4.3.1.zip.siggp...
-
These keyboard shortcuts are helpful. Some of them are not document in Visual Studio 2010 Express, for example: <Ctrl> F5 to run the ...
-
What is a view? A view can be thought of as either a virtual table or a stored query. The data accessible through a view is not stored in th...
-
https://dupeguru.voltaicideas.net/ https://github.com/arsenetar/dupeguru/releases/tag/4.3.1 $ gpg --verify dupeguru_macOS_Qt_4.3.1.zip.siggp...
No comments:
Post a Comment