C#.NET INTERVIEW QUESTION & ANSWERS
21. |
What is hash table? |
|
Hash table provides way of accessing the index using a user identified KEY value, thus removing the INDEX problem. |
22. |
What are the similarities between class and structures? |
|
- Both can have constructors, methods, properties, fields, constants, enumeration, events and event handlers.
- Structures and classes can implement interface.
-
Both can have delegates and events.
- Both of them can have constructors with and without parameter.
|
23. |
Does C# have copy constructors? |
|
No. Objects in C# are always created by reference rather than by value, so a copy constructor is never implicitly called the way that it might be in C++. |
24. |
What is Multi-tasking? |
|
It is a feature of modern operating system with which we can run multiple programs at same time. |
25. |
How do you inherit from a class in C#? |
|
Place a colon and then the name of the base class. Notice that it's double colon in C++. |