public class Member {
	String name;
	String tel;
	String address;
    
    void setMember(String name, String tel, String address) {
		this.name = name;
		this.tel = tel;
		this.address = address;
	}
}

this로 클래스의 멤버변수에 위와같이 대입할 수 있다.

+ Recent posts