关于构造方法的问题
package com.java;
public class people{
double hight;
int age;
int sex;
public people(double h; int a,int s){
hight=h;
age=a;
sex=s;
public people 是构造方法,那它为什么是初始化了所有属性呢
package com.java;
public class people{
double hight;
int age;
int sex;
public people(double h; int a,int s){
hight=h;
age=a;
sex=s;
public people 是构造方法,那它为什么是初始化了所有属性呢
2018-09-25
举报