Top "This" questions

Keyword that refers to the current class instance or object in many object-oriented programming languages.

C# When To Use "This" Keyword

Possible Duplicate: When do you use the “this” keyword? Hello, I understand that the This keyword is used to refer …

c# constructor this
Invalid use of 'this' in non-member function

I had working on a class and started writing everything in the same .cpp file. However, after a while I …

c++ compiler-errors this non-member-functions
How to function call using 'this' inside forEach loop

In the following object, I have a problem using the 'this' reference: function SampleObject(){ this.addObject = function(object){...} ... // more code …

javascript this
What does "this()" method mean?

I ran into this block of code, and there is this one line I don't quit understand the meaning or …

java constructor this constructor-overloading
Javascript setInterval and `this` solution

I need to access this from my setInterval handler prefs: null, startup : function() { // init prefs ... this.retrieve_rate(); this.intervalID = …

javascript this setinterval
What is the difference between Class.this and this in Java

There are two ways to reference the instance of a class within that class. For example: class Person { String name; …

java this
Access "this" from Java anonymous class

Given the following code: public interface Selectable { public void select(); } public class Container implements Selectable { public void select() { ... } public void …

java this anonymous-class
js call static method from class

I have a class with a static method: class User { constructor() { User.staticMethod(); } static staticMethod() {} } Is there something like this …

javascript class static this
VueJS: why is "this" undefined?

I'm creating a component with Vue.js. When I reference this in any of the the lifecycle hooks (created, mounted, …

javascript vue.js this vuejs2
When should I make explicit use of the `this` pointer?

When should I explicitly write this->member in a method of a class?

c++ this