设为首页 加入收藏

TOP

C#软件工程师英语面试题
2014-11-23 22:51:25 来源: 作者: 【 】 浏览:2
Tags:软件 工程师 英语 试题

1 True or false: both instance properties and static properties are allowed True
2 True or false: a static method can access instance members False.
3. It is considered good style to explicitly invoke the garbage collector whenever an object allocated on the heap goes out of scope True
4 Determining if two references refer to the same object should be done using: The Equals method.
5 In Exceptions, the catch and finally constructs may be associated with the same try block. True.56
6 If a method is marked as protected internal who can access it
Classes that are both in the same assembly and derived from the declaring class.
7. What’s the difference between the Debug class and Trace class
8. When should you call the garbage collector in .NET


9 What is encapsulation
Containing and hiding information about an object, such as internal data structures and code. Encapsulation isolates the internal complexity of an object’s operation from the rest of the application. For example, a client component asking for net revenue from a business object need not know the data’s origin.
What is inheritance
Inheritance allows one class to reuse the state and behavior of another class. The derived class inherits the properties and method implementations of the base class and extends it by overriding methods and adding additional properties and methods.
What is Polymorphism
Polymorphism allows a client to treat different objects in the same way even if they were created from different classes and exhibit different behaviors.
You can use implementation inheritance to achieve polymorphism in languages such as C++ and Java. Base class object’s pointer can invoke methods in derived class objects.
You can also achieve polymorphism in C++ by function overloading and operator overloading.


10 What is a virtual method
the implementation of a virtual method can be superseded by derived classes. The process of superseding the implementation of an inherited virtual method is known as overriding that method


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇百度2011.10.16校园招聘会笔试题 下一篇了解AppleTalk协议吗?

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: