Monday, April 23, 2007

مجموعة أسئلة للمقابلة الشخصية هايلة

Can you prevent your class from being inherited by another class?
Yes. The keyword “sealed” will prevent the class from being inherited.

Can you inherit multiple interfaces?
Yes. .NET does support multiple interfaces.
 
What’s the difference between an interface and abstract class?
In an interface class, all methods are abstract - there is no implementation. In an abstract class some methods can be concrete. In an interface class, no accessibility modifiers are allowed. An abstract class may have accessibility modifiers.
  

What’s a delegate?
A delegate object encapsulates a reference to a method.


What’s a multicast delegate?
A delegate that has multiple handlers assigned to it. Each assigned handler (method) is called.

What is the role of the DataReader class in ADO.NET connections?
It returns a read-only, forward-only rowset from the data source. A DataReader provides fast access when a forward-only sequential read is needed.


What are advantages and disadvantages of Microsoft-provided data provider classes in ADO.NET?

SQLServer.NET data provider is high-speed and robust, but requires SQL Server license purchased from Microsoft. OLE-DB.NET is universal for accessing other sources, like Oracle, DB2, Microsoft Access and Informix. OLE-DB.NET is a .NET layer on top of the OLE layer, so it’s not as fastest and efficient as SqlServer.NET.






What namespaces are necessary to create a localized application?

System.Globalization and System.Resources.




How do you convert a value-type to a reference-type?

Use Boxing.
 

What happens in memory when you Box and Unbox a value-type?

Boxing converts a value-type to a reference-type, thus storing the object on the heap. Unboxing converts a reference-type to a value-type, thus storing the value on the stack.

 Mark Wagner's .NET C# Cogitation

إن شاء الله نراجع على بعض التعريفات اللى هنا



0 Comments:

Post a Comment

<< Home