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

What is oops?what is its use in software engineering?

559


Can main method override?

587


what type of questions

1697


Why do we use oops?

595


What is inheritance in simple words?

627






Which language is pure oop?

553


Why multiple inheritance is not possible?

604


Why do we use class in oops?

557


How to call a non virtual function in the derived class by using base class pointer

5281


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6155


What are the 4 main oop principles?

685


What is the difference between a mixin and inheritance?

524


What is polymorphism explain its types?

688


What is difference between oop and pop?

620


Is oop better than procedural?

576