此页面上的内容需要较新版本的 Adobe Flash Player。

获取 Adobe Flash Player

中文版 | 英文版【English】
作业习题
当前位置: 首页 >> 课程网站 >> 作业习题 >> 正文

Chapter 2

2014-06-04  点击:[]

Chapter 2:

1What are the main features of such an OOP language as Delphi? How to define a class type?

2What is object and its properties, events and methods?

3What is a constructor and destructor? When is a class's destructor called?

4What is the methods of a class? Try to give an example to demonstrate the implementation of the method.

5What is encapsulation?

6Try to describe the Delphis object reference model.

7What is inheriting? How to inheriting from existing types? Try to give an example.

8What is polymorphism? Try to explain how to implementation it.

9How to overriding and redefining methods?

10What are the differences between the virtual methods and the dynamic methods?

11What is the abstract methods?

12What is the exceptions? How to define the exception classes? How to handle an exception? Give an example.

13Write a class that takes a person's height in inches and returns the height in feet. Derive a class from the class of person that also returns the height in meters, centimeters, or millimeters.

14What is the purpose of having private fields and methods?

关闭