ODL 中的操作定义格式为名称后面加圆括号。

示例:Student 类的操作定义:

age():返回年龄

gpa():返回 GPA

register_for(crse, sec, term):注册课程