Java的构造函数

构造函数就是名字相同,名字前面可以不加东西,要加就只能加public或者其他的访问权限,其作用是赋初值。

posted @ 2022-05-24 07:54  过移  阅读(8)  评论(0)    收藏  举报  来源