this keyword in Java

preview_player
Показать описание
Definition And Usage

The this keyword refers to the current object in a method or constructor. The most common use of the this keyword is to eliminate the confusion between class attributes and parameters with the same name because a class attribute is shadowed by a method or constructor parameter

this can also be used to

Invoke current class constructor
Invoke current class method
Return the current class object
Pass an argument in the method call
Pass an argument in the constructor call

#BackCoding
#java
#programming
#shorts
Рекомендации по теме
Комментарии
Автор

Assalamualaikum sir g 🥰 plz agr isky notes ha complete to mujhe send kr dy plz 😢😢😢😢😢😢😢😢😊

MariaRasool