619128, 7:27 AM 7-Jun-2022.pn9
Understanding ‘his’ Keyword:
SSD Iris used to resolve the ambguity between Instance Variables & Local Variables
=D tis used to access present class methods,
s s thi
==> Its used to retum the Instance of a class ae x a
== tis used as a CONSTRUCTOR CALL I) Itisa Keyword 1) Itis a constructor eall
2) We can use this keyword | 2) We can use this() to call
to call present class variables | present class constructors.
and present class methods.
3) We can use this keyword | _3) We need to use this() only
inside a method (or) inside a | inside a constructor that too as,
constructor, but we cannot || a FIRST statement. If we are
use inside a static area using this() anywhere else
except inside a constructor as
their first statement we will be
getting a compile time e
-nps:iflassroom google.com/eINDKONT&zMze20DIW?pli=t uw