Student this_student = new Student();这个是什么意思

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/04 20:20:07
Student this_student = new Student();这个是什么意思

Student this_student = new Student();这个是什么意思
Student this_student = new Student();这个是什么意思

Student this_student = new Student();这个是什么意思
student 学生
this student 这个学生
new student 新学生
但是新学生应该说成 a new student 或者是 new students
你是要说 This student is a new student 么
意思是 这个学生是新来的.

新来的学生

Student std = new Student();
↑类名 ↑对象名 ↑调用类的默认构造器创建对象
这是Java不能再基础的基础了,如果还是不懂那就先不要管为什么,就这样做,跟着教程写一个最简单的HelloWorld,然后再了解一下什么是面向对象。。。。。。。。。。。。。...

全部展开

Student std = new Student();
↑类名 ↑对象名 ↑调用类的默认构造器创建对象
这是Java不能再基础的基础了,如果还是不懂那就先不要管为什么,就这样做,跟着教程写一个最简单的HelloWorld,然后再了解一下什么是面向对象。。。。。。。。。。。。。

收起