answersLogoWhite

0

What is diffrent between object pointer and this pointer?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

'this' is an object-pointer: it points to the current object (usable only in non-static methods).

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is diffrent between object pointer and this pointer?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

When you let your pointer linger over an object the pointer is?

The pointer is non-NULL.


Why pointer is not an object?

A pointer in itself is not an object, because it is not an instance of a class. Of course you can define a class which has only one member, which is a pointer. class Pointer { public void *ptr; }; Pointer p, q, r;


What is an array of pointers to pointers?

A pointer is a variable that stores value of address of a variable. Since a pointer itself is a variable, it is allocated a memory location.Pointer to pointer means a pointer which points to the address of a pointer. In other words a pointer to a pointer has the address of the address of a variable.We can have pointers to int, and pointers to char, and pointers to any structures we've defined, and in fact pointers to any type in C, it shouldn't come as too much of a surprise that we can have pointers to other pointers. If we're used to thinking about simple pointers, and to keeping clear in our minds the distinction between the pointer itself and what it points to, we should be able to think about pointers to pointers, too, although we'll now have to distinguish between the pointer, what it points to, and what the pointer that it points to points.


What is the difference between reference and hashcode?

There is no relation between reference and hascode, Java reference is unique pointer which refers an object. so each object will have a unique reference. but 2 diff object can have same hashcode.


Define Dynamic pointer with example?

Dynamic Pointer is a pointer which points to diffrent places,not at once but at diffrent intervals it might be pointing to some place at once then after certain code executes it might change its position to somewhere else . Example int x,y; int *p=&x;/* pointer p points to the address of x*/ p=&y;/*pointer P now points to the addres of y*/


When does this pointer get created?

When we call non static method with respect to class object then this pointer is created which keep the reference of that object.


Where string is stored on Heap or Stack in java?

A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.A String is treated as an object, meaning there is an object on the heap. Of course, the variable you define is a pointer to the object, and it is stored on the stack.


What is the difference between Family Court and Superior Court Family Division in New Jersey?

what is the diffrent between family and families what is the diffrent between family and families what is the diffrent between family and families what is the diffrent between family and families what is the diffrent between family and families


Which pointer do you use to resize a chart object?

I


When putting an object on a spring scale the pointer shows the object's what?

When putting an object on a spring scale the pointer is going to show that objects weight. So the answer would be WEIGHT. Like for example when you are in your bathroom and you step on the scale , the pointer is going to show how much you weigh.


Definition of dangling pointer object?

A dangling pointer occurs when objects have been deallocated or deleted from the system. They 'dangle' due to the pointer's values still remaining leaving a location to the non-existent object in the memory.


What is the different between header file and header pointer?

Header file is a file which is meant to be included into another file during compilation. Examples: string.h, stdio.h, inttypes.h. Header pointer is a pointer to an object called header (for example header of a linked list).