"this" Keyword
Description :
"this" keyword is used to represent the current instance of class.
"this" keyword is used to refer current instance members.
Lets we see the simple example
Example :
Here there is simple class "Student". "Student" class has the variable "studentName" member and method "getStudentName()."
Comments
Post a Comment