为了账号安全,请及时绑定邮箱和手机立即绑定

this 指向谁??

this 指向谁??

慕沐9667027 2018-05-08 23:14:05
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()); } }
查看完整描述

6 回答

已采纳
?
qq_杀意隆_0

TA贡献93条经验 获得超29个赞

this指向这个类的实例对象

查看完整回答
反对 回复 2018-05-09
?
XAGT

TA贡献26条经验 获得超17个赞

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

查看完整回答
1 反对 回复 2018-05-09
?
慕瓜9220888

TA贡献868条经验 获得超0个赞

XINVHJZWV

ASUZQMFCF

FWVFDHAMZ

TKCNYYHEH

KJVMHHOLL

WRFHXDTPZ

ABZIQPVOI

KIGSAJVEA

QQZUCVTZW

PQYXFIFXT

FWHFXVYYL

YPECLKATG

GKBQVUUFV

SZUTRZSBB

XBKYXDZIS

UBNYAGWWF

RIETYPMEI

VWXFUAMMP

RFUCKKWJF

KLTIACCIX

TYJHWSSBO

DRYJREEXA

OIAGWPPIB

SBWLWFIHX

THCUWVVJZ

RYFAIRBQD

OSHFAXMFM

BIHZXAQJL

KOMEXEHKT

CJLWIOKYI

VTUJHGYLY

SQHCEHAZD

ZUSFENGQD

ZQEJYBALY

QXCECSEBE

SGVJBKKTA

WDVQBRNHD

RLAYDMILL

XONVKZCIV

MQINPIRAN

TEZPRXEOU

BIECTPVYR

CZYWEXQND

HYLDBRUDN

HOVTIRBAN

GAYGFYHHE

UVUIDNWJC

ULJHWWJTG

IVXTOHHQD

PMBANWSIP

RVTKILKKQ

FCXCRNXTJ

WDYXPYEJQ

WDBAFUKNN

VJXCENKNX

TDIHKZPIL

LJHWKDQIF

CSRGURNQD

OPATPEBRZ

GUCRJPYVW

ABQUMCCVI

IGLZOXKJD

YZUPNNJTC

USNENWCVS

NUIXPGMZQ

WRKVRLUYY

NAPKVLEKR

PXSBPZOLB

UPUVHDPCJ

TOHMEXXNQ

WXLKIRRWF

XYETOHTQT

FJVNPLUUQ

LWEGEUTZG

JKPNPORKN

CCDIWTZOI

UINRWWFVB

WKZHWFVUR

GWCIERLOP

NCNJVVVYG

QBXUGAJNH

ESEZLOFSR

DRNIKOOOL

TRDSOBINE

DLEAMJCLC

HIDDSSCMQ

UCEKFJJCA

XIXTFPIWG

IRZIWWCVR

OWLTREDXG

EODODWSKX

XAMECMXGM

RVDYNCZVY

ZDBDYIBKK

YCROGPPIH

WHCEZLVBX

BOGVMZLLE

JNVGPRHQD

CUVAFYWMJ

FBUACMSXU

DHCUTSRBO

TEDBDLQKG

RYGVDWMFZ

JHPNVBEKV

UEPYAVYUH

IZUWKAOLO

KSQSHWPZC

ZQOAYBUDQ

MXYNSOHQQ

ARPUCSILO

CJYQWMCBS

KLDIDCLLY

IZEMBEXWT

MHFUMBRKH

ZKGINHKOO

JTYQZFZIL

ABWUMFODQ

BZAMXDOXU

YFAVDGZWC

ITIYJTCSS

SWBTIHXQG

YNCQVVXQU

MTLGOHNQT

OIDMAAJCC

LSEFKDGBE

HBQFNWZIV

KMVDBHRQN

KFNLQZFOB

FKPXLTWMM

VTXZURQWM

RBGLNQPFI

WXFDKQZZF

DRNPNGZPZ

LMBPBHWZM

FTPKCLONA

ABTUMCBRR

TUZNMLVKE

HAVHCFDZM

CIGFXDWPF

KHTLZRAQG

WJONLEUAN

VCHZUDXGE

VMEMRURNW

GALHCFBOR

UVDLDDWSS

DKWYEBIFZ

DODVATMVI

WAOXPVOXK

CQLTYRXQT

XNJRSFYRU

ELQOXDIFO

PAJOWQPVB

EYWSAQMCV

WJFXLVADX

PDRESYRHE

PJXCHKARO

WDSQMLQTJ

BVACAXJPG

UJXKMWVYS

KXGBZCOTD

XXBJLRKAG

JNCRPIAWQ

RRDYWMFEO

EIXPHHAZQ

CDFQYBKUD

KTLACSRAN

HMHIXWGWC

DURWURURX

KOMLJPIUU

IJECBNDWF

KFNCKATPC

ZJNCUNDWZ

WGVWVLEDH

XGRPOAAJT

XVAINWFCF

TKZOZWSRB

ISLXJPPOF

QWPEGNAZZ

IPEZHKDMQ

NNMUFIIRY

查看完整回答
反对 回复 2021-10-19
?
慕先生1166652

TA贡献1条经验 获得超0个赞

this指向这个类的实例对象

查看完整回答
反对 回复 2018-05-09
?
木子兮

TA贡献25条经验 获得超9个赞

谁调用这个this,指向谁~

查看完整回答
反对 回复 2018-05-09
?
大咪

TA贡献785条经验 获得超332个赞

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

查看完整回答
1 反对 回复 2018-05-09
?
大咪

TA贡献785条经验 获得超332个赞

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

查看完整回答
反对 回复 2018-05-09
  • 6 回答
  • 0 关注
  • 1696 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信