this 指向谁??

package one;


public class User {

private String name;

private String password;

public User() {

}



public String getName() {

return "用户名:"+name;

}



public void setName(String name) {

this.name = name;

}



public String getPassword() {

return "密码:"+password;

}



public void setPassword(String password) {

this.password = password;

}

public void Get() {

System.out.println(this.getName());

System.out.println(this.getPassword());

}

}


慕沐9667027
浏览 1697回答 6
6回答

qq_杀意隆_0

this指向这个类的实例对象

XAGT

本类,只要你有清楚地认识这个类是什么

慕瓜9220888

XINVHJZWVASUZQMFCFFWVFDHAMZTKCNYYHEHKJVMHHOLLWRFHXDTPZABZIQPVOIKIGSAJVEAQQZUCVTZWPQYXFIFXTFWHFXVYYLYPECLKATGGKBQVUUFVSZUTRZSBBXBKYXDZISUBNYAGWWFRIETYPMEIVWXFUAMMPRFUCKKWJFKLTIACCIXTYJHWSSBODRYJREEXAOIAGWPPIBSBWLWFIHXTHCUWVVJZRYFAIRBQDOSHFAXMFMBIHZXAQJLKOMEXEHKTCJLWIOKYIVTUJHGYLYSQHCEHAZDZUSFENGQDZQEJYBALYQXCECSEBESGVJBKKTAWDVQBRNHDRLAYDMILLXONVKZCIVMQINPIRANTEZPRXEOUBIECTPVYRCZYWEXQNDHYLDBRUDNHOVTIRBANGAYGFYHHEUVUIDNWJCULJHWWJTGIVXTOHHQDPMBANWSIPRVTKILKKQFCXCRNXTJWDYXPYEJQWDBAFUKNNVJXCENKNXTDIHKZPILLJHWKDQIFCSRGURNQDOPATPEBRZGUCRJPYVWABQUMCCVIIGLZOXKJDYZUPNNJTCUSNENWCVSNUIXPGMZQWRKVRLUYYNAPKVLEKRPXSBPZOLBUPUVHDPCJTOHMEXXNQWXLKIRRWFXYETOHTQTFJVNPLUUQLWEGEUTZGJKPNPORKNCCDIWTZOIUINRWWFVBWKZHWFVURGWCIERLOPNCNJVVVYGQBXUGAJNHESEZLOFSRDRNIKOOOLTRDSOBINEDLEAMJCLCHIDDSSCMQUCEKFJJCAXIXTFPIWGIRZIWWCVROWLTREDXGEODODWSKXXAMECMXGMRVDYNCZVYZDBDYIBKKYCROGPPIHWHCEZLVBXBOGVMZLLEJNVGPRHQDCUVAFYWMJFBUACMSXUDHCUTSRBOTEDBDLQKGRYGVDWMFZJHPNVBEKVUEPYAVYUHIZUWKAOLOKSQSHWPZCZQOAYBUDQMXYNSOHQQARPUCSILOCJYQWMCBSKLDIDCLLYIZEMBEXWTMHFUMBRKHZKGINHKOOJTYQZFZILABWUMFODQBZAMXDOXUYFAVDGZWCITIYJTCSSSWBTIHXQGYNCQVVXQUMTLGOHNQTOIDMAAJCCLSEFKDGBEHBQFNWZIVKMVDBHRQNKFNLQZFOBFKPXLTWMMVTXZURQWMRBGLNQPFIWXFDKQZZFDRNPNGZPZLMBPBHWZMFTPKCLONAABTUMCBRRTUZNMLVKEHAVHCFDZMCIGFXDWPFKHTLZRAQGWJONLEUANVCHZUDXGEVMEMRURNWGALHCFBORUVDLDDWSSDKWYEBIFZDODVATMVIWAOXPVOXKCQLTYRXQTXNJRSFYRUELQOXDIFOPAJOWQPVBEYWSAQMCVWJFXLVADXPDRESYRHEPJXCHKAROWDSQMLQTJBVACAXJPGUJXKMWVYSKXGBZCOTDXXBJLRKAGJNCRPIAWQRRDYWMFEOEIXPHHAZQCDFQYBKUDKTLACSRANHMHIXWGWCDURWURURXKOMLJPIUUIJECBNDWFKFNCKATPCZJNCUNDWZWGVWVLEDHXGRPOAAJTXVAINWFCFTKZOZWSRBISLXJPPOFQWPEGNAZZIPEZHKDMQNNMUFIIRY

慕先生1166652

this指向这个类的实例对象

木子兮

谁调用这个this,指向谁~

大咪

this就是你这个对象本身,User.

大咪

this就是你这个对象本身,User
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java