北京天圆南京分公司C#面试英语题目[带答案]

What is the syntax to inherit from a class in C#?
Place a colon and then the name of the base class.
Example: class MyNewClass : MyBaseClass


Can you store multiple data types in System.Array?

No.


What’s the .NET collection class that allows an element to be accessed using a unique key?

HashTable.


What’s the top .NET class that everything is derived from?
System.Object.

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.


Who is a protected class-level variable available to?
It is available to any sub-class (a class inheriting this class).