📄 object.scp
字号:
object student(id, nm, sp, grd)
{
ID = id;
name = nm;
specialty = sp;
grade = grd;
introduce = function()
{
println("I'm ",this.name,
" a ", this.grade, " of this university, ",
"specialty in ", this.specialty, ", ",
"student no. ", this.ID, "," ,
"nice to meet you!");
};
}
function main()
{
s = new student("123456789", "Franklin Charlie", "computer science", "freshman");
s.introduce();
println(s);
println(s.type());
println(s.string());
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -