我正在尝试解释编写时间线代码和文档类代码之间的区别,到目前为止我已经做到了:
Timeline code:
- doesn't require a package and class declaration
Document Class code:
- requires a package and class declaration
Timeline code:
- starts working on the top-most line
Document Class Code:
- starts working from the constructor function
Tim