What is this keyword?
Sometimes a function or method will need to refer to the object that invoked it. 'this' keyword can be used inside any method to refer to the current object. Example :- box(double width, double height, double depth){ this.width= width; this.height=height; this.depth=depth; }
Answered Feb 10, 2020 · 1.1K Views Read answer →