“this” keyword: Working mechanism in Java

前端 未结 5 1092
执笔经年
执笔经年 2020-12-29 09:49

After learning Java for sometime, its the first time the use of this keyword has confused me so much.

Here is how I got confused. I wrote the following

5条回答
  •  梦谈多话
    2020-12-29 10:31

    As a matter of fact , polymorphism property in JAVA programming language can only be applied for methods that have enough qualification to be polymorphic members. You are not supposed to think of Fields as members that have the mentioned property.Thus you won't get confused about such issues anymore.

提交回复
热议问题