当前位置:百科知识 > 物联网工程

问题描述:

[单选] 已知Student类是一个空类,stu1和stu2是Student类的两个对象,则通过“stu1.name=‘李晓明’”语句增加的属性可以通过()访问。
A.Student.name、stu1.name或stu2.name B.Student.name或stu1.name C.stu1.name或stu2.name D.stu1.name
参考答案:查看
答案解析:
☆收藏

随机题目