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

when to use 'mutable' keyword and when to use 'const cast' in c++

1881


What is polymorphism explain?

963


Which is better struts or spring?

807


Can a destructor be called directly?

802


How do you define social class?

810


Why is oop better than procedural?

807


What are oops methods?

760


What is the difference between procedural programming and oops?

772


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1889


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

2149


What is overriding in oop?

787


Templates mean

1826


what is different between oops and c++

2191


i got a backdoor offer in process global,Bangalore..Can i work with it?

2576


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4473