what is the function of 'this' operator ?

Answer Posted / walking legend

as we generally know a pointer is used to point to the
address of a particular variable and access its value.
Similarly,this is a pointer which always points to the
current object.

Is This Answer Correct ?    15 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is enum a class?

602


What is class in oop with example?

611


What is polymorphism in oop example?

511


What is difference between data abstraction and encapsulation?

613


Is this job good for future? can do this job post grduate student?

1686






what is graphics

2004


Can an interface inherit a class?

553


What is abstract class in oop?

526


What is overriding in oops?

596


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1613


What is polymorphism programming?

598


Why is abstraction used?

599


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1635


What is destructor oops?

615


What does and I oop and sksksk mean?

648