scala对象中怎么set参数值

2022-10-03  7

如何在scala对象中设置参数值介绍如何在scala对象中设置参数值:例如class student (name: string,age: integer) 创建一个学生对象:val stu = new Student( quot;scala quot, 22) 没错。
转载请注明原文地址:https://juke.outofmemory.cn/read/1888676.html

最新回复(0)